Zend Framework  1.12
Public Member Functions | Static Public Member Functions | List of all members
Zend_Pdf_Resource_Font_FontDescriptor Class Reference

Public Member Functions

 __construct ()
 Object constructor.
 

Static Public Member Functions

static factory (Zend_Pdf_Resource_Font $font, Zend_Pdf_FileParser_Font_OpenType $fontParser, $embeddingOptions)
 Object constructor.
 

Constructor & Destructor Documentation

__construct ( )

Object constructor.

Exceptions
Zend_Pdf_Exception

Member Function Documentation

static factory ( Zend_Pdf_Resource_Font  $font,
Zend_Pdf_FileParser_Font_OpenType  $fontParser,
  $embeddingOptions 
)
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.

Parameters
Zend_Pdf_Resource_Font$fontFont
Zend_Pdf_FileParser_Font_OpenType$fontParserFont parser object containing parsed TrueType file.
integer$embeddingOptionsOptions for font embedding.
Returns
Zend_Pdf_Element_Dictionary
Exceptions
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'.

Todo:
Calculate value for StemV.