Pdf/Resource/Font/FontDescriptor.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Subpackage
- Fonts
- Version
- $Id$
\Zend_Pdf_Resource_Font_FontDescriptor
Package: Zend_Pdf\Fonts
Returns
Throws
FontDescriptor implementation
A font descriptor specifies metrics and other attributes of a simple font or a
CIDFont as a whole, as distinct from the metrics of individual glyphs. These font
metrics provide information that enables a viewer application to synthesize a
substitute font or select a similar font when the font program is unavailable. The
font descriptor may also be used to embed the font program in the PDF file.
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
factory(\Zend_Pdf_Resource_Font $font, \Zend_Pdf_FileParser_Font_OpenType $fontParser, integer $embeddingOptions) : \Zend_Pdf_Element_Dictionary
static
Object constructor
The $embeddingOptions parameter allows you to set certain flags related
to font embedding. You may combine options by OR-ing them together. See
the EMBED_ constants defined in {@link Zend_Pdf_Font} for the list of
available options and their descriptions.
Note that it is not requried that fonts be embedded within the PDF file
to use them. If the recipient of the PDF has the font installed on their
computer, they will see the correct fonts in the document. If they don't,
the PDF viewer will substitute or synthesize a replacement.
ParametersName | Type | Description |
---|---|---|
$font | \Zend_Pdf_Resource_Font | Font |
$fontParser | \Zend_Pdf_FileParser_Font_OpenType | Font parser object containing parsed TrueType file. |
$embeddingOptions | integer | Options for font embedding. |
Type | Description |
---|---|
\Zend_Pdf_Element_Dictionary |
Exception | Description |
---|---|
\Zend_Pdf_Exception |