Docs For Class Zend_Pdf_Resource_Font_OpenType

## Class Zend_Pdf_Resource_Font_OpenType

Description

OpenType fonts implementation

OpenType fonts can contain either TrueType or PostScript Type 1 outlines. The code in this class is common to both types. However, you will only deal directly with subclasses.

Font objects should be normally be obtained from the factory methods Zend_Pdf_Font::fontWithName and Zend_Pdf_Font::fontWithPath.

- abstract:
- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Pdf/Resource/Font/OpenType.php (line 40)

    Zend_Pdf_Resource
       |
       --Zend_Pdf_Resource_Font
          |
          --Zend_Pdf_Resource_Font_OpenType

Direct descendents

Class | Description
--- | ---
Zend_Pdf_Resource_Font_OpenType_TrueType | TrueType fonts implementation

Method Summary
Zend_Pdf_Resource_Font_OpenType __construct (Zend_Pdf_FileParser_Font_OpenType $fontParser, integer $embeddingOptions)
Variables

#### Inherited Variables

Inherited from Zend_Pdf_Resource_Font

> Zend_Pdf_Resource_Font::$cmap
> Zend_Pdf_Resource_Font::$_ascent
> Zend_Pdf_Resource_Font::$_descent
> Zend_Pdf_Resource_Font::$_fontNames
> Zend_Pdf_Resource_Font::$_fontType
> Zend_Pdf_Resource_Font::$_glyphMaxIndex
> Zend_Pdf_Resource_Font::$_glyphWidths
> Zend_Pdf_Resource_Font::$_isBold
> Zend_Pdf_Resource_Font::$_isItalic
> Zend_Pdf_Resource_Font::$_isMonospace
> Zend_Pdf_Resource_Font::$_lineGap
> Zend_Pdf_Resource_Font::$_strikePosition
> Zend_Pdf_Resource_Font::$_strikeThickness
> Zend_Pdf_Resource_Font::$_underlinePosition
> Zend_Pdf_Resource_Font::$_underlineThickness
> Zend_Pdf_Resource_Font::$_unitsPerEm

Inherited from Zend_Pdf_Resource

> Zend_Pdf_Resource::$_objectFactory
> Zend_Pdf_Resource::$_resource

Methods
Constructor __construct (line 65)

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.

- access: public
- throws: Zend_Pdf_Exception

Zend_Pdf_Resource_Font_OpenType __construct (Zend_Pdf_FileParser_Font_OpenType $fontParser, integer $embeddingOptions)

- Zend_Pdf_FileParser_Font_OpenType $fontParser: Font parser object containing OpenType file.
- integer $embeddingOptions: Options for font embedding.

Redefinition of:

Zend_Pdf_Resource_Font::__construct()
  Object constructor.

Redefined in descendants as:

- Zend_Pdf_Resource_Font_OpenType_TrueType::__construct() : Object constructor

#### Inherited Methods

Inherited From Zend_Pdf_Resource_Font

> Zend_Pdf_Resource_Font::__construct()
> Zend_Pdf_Resource_Font::decodeString()
> Zend_Pdf_Resource_Font::encodeString()
> Zend_Pdf_Resource_Font::getAscent()
> Zend_Pdf_Resource_Font::getCoveredPercentage()
> Zend_Pdf_Resource_Font::getDescent()
> Zend_Pdf_Resource_Font::getFontName()
> Zend_Pdf_Resource_Font::getFontType()
> Zend_Pdf_Resource_Font::getLineGap()
> Zend_Pdf_Resource_Font::getLineHeight()
> Zend_Pdf_Resource_Font::getStrikePosition()
> Zend_Pdf_Resource_Font::getStrikeThickness()
> Zend_Pdf_Resource_Font::getUnderlinePosition()
> Zend_Pdf_Resource_Font::getUnderlineThickness()
> Zend_Pdf_Resource_Font::getUnitsPerEm()
> Zend_Pdf_Resource_Font::widthForGlyph()
> Zend_Pdf_Resource_Font::widthsForGlyphs()
> Zend_Pdf_Resource_Font::_isEmbeddingOptionSet()
> Zend_Pdf_Resource_Font::_toEmSpace()
> Zend_Pdf_Resource_Font::__toString()

Inherited From Zend_Pdf_Resource

> Zend_Pdf_Resource::__construct()
> Zend_Pdf_Resource::getResource()

Documentation generated on Sun, 29 Oct 2006 21:27:25 -0600 by phpDocumentor 1.3.0RC6