Abstract helper class for Zend_Pdf_Resource_Font which manages font character maps.
Defines the public interface for concrete subclasses which are responsible for mapping Unicode characters to the font's glyph numbers. Also provides shared utility methods.
Cmap objects should ordinarily be obtained through the factory method cmapWithTypeData().
The supported character map types are those found in the OpenType spec. For additional detail on the internal binary format of these tables, see:
Located in /Zend/Pdf/Cmap.php (line 66)
Class | Description |
---|---|
![]() |
Implements the "byte encoding" character map (type 0). |
![]() |
Implements the "segment mapping to delta values" character map (type 4). |
![]() |
Implements the "trimmed table mapping" character map (type 6). |
Instantiates the appropriate concrete subclass based on the type of cmap table and returns the instance.
The cmap type must be one of the following values:
Throws an exception if the table type is invalid or the cmap table data cannot be validated.
Returns an array containing the Unicode characters that have entries in this character map.
Returns the glyph number corresponding to the Unicode character.
If a particular character doesn't exist in this font, the special 'missing character glyph' will be substituted.
See also glyphNumbersForCharacters() which is optimized for bulk operations.
Returns an array of glyph numbers corresponding to the Unicode characters.
If a particular character doesn't exist in this font, the special 'missing character glyph' will be substituted.
See also glyphNumberForCharacter().
Object constructor
Parses the raw binary table data. Throws an exception if the table is malformed.
Extracts a signed 2-byte integer from a string.
Integers are always big-endian. Throws an exception if the index is out of range.
Extracts an unsigned 2-byte integer from a string.
Integers are always big-endian. Throws an exception if the index is out of range.
Extracts an unsigned 4-byte integer from a string.
Integers are always big-endian. Throws an exception if the index is out of range.
NOTE: If you ask for a 4-byte unsigned integer on a 32-bit machine, the resulting value WILL BE SIGNED because PHP uses signed integers internally for everything. To guarantee portability, be sure to use bitwise or similar operators on large integers!
Glyph representing missing characters.
Byte Encoding character map table type.
Static Byte Encoding character map table type. Variant of TYPE_BYTEENCODING.
High Byte Mapping character map table type.
Mixed Coverage character map table type.
Segmented Coverage character map table type.
Segment Value to Delta Mapping character map table type.
Trimmed Array character map table type.
Trimmed Table character map table type.
Unknown character map table type.
Documentation generated on Wed, 21 Feb 2007 11:46:19 -0800 by phpDocumentor 1.3.1