Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct () | |
Static Public Member Functions | |
static | factory (Zend_Pdf_Resource_Font $font, Zend_Pdf_FileParser_Font_OpenType $fontParser, $embeddingOptions) |
Definition at line 48 of file FontDescriptor.php.
__construct | ( | ) |
Object constructor
Zend_Pdf_Exception |
Definition at line 54 of file FontDescriptor.php.
|
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 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.
Zend_Pdf_Resource_Font | $font | Font |
Zend_Pdf_FileParser_Font_OpenType | $fontParser | Font parser object containing parsed TrueType file. |
integer | $embeddingOptions | Options for font embedding. |
Zend_Pdf_Exception |
The vertical stem width is not yet extracted from the OpenType font file. For now, record zero which is interpreted as 'unknown'.
Definition at line 80 of file FontDescriptor.php.