Class Zend_Pdf_Cmap_SegmentToDelta

Description

Implements the "segment mapping to delta values" character map (type 4).

This is the Microsoft standard mapping table type for OpenType fonts. It provides the ability to cover multiple contiguous ranges of the Unicode character set, with the exception of Unicode Surrogates (U+D800 - U+DFFF).

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

Located in /Zend/Pdf/Cmap/SegmentToDelta.php (line 37)

Zend_Pdf_Cmap
   |
   --Zend_Pdf_Cmap_SegmentToDelta
Variable Summary
Method Summary
 Zend_Pdf_Cmap_SegmentToDelta __construct (string $cmapData)
 integer glyphNumberForCharacter (integer $characterCode)
 array glyphNumbersForCharacters (array $characterCodes)
Variables
array $_glyphIndexArray = array() (line 96)

Glyph index array. Stores glyph numbers, used with range offset.

  • access: protected
integer $_searchIterations = 0 (line 59)

The number of binary search steps required to cover the entire search range.

  • access: protected
integer $_searchRange = 0 (line 52)

The size of the binary search range for segments.

  • access: protected
integer $_searchRangeEndCode = 0 (line 72)

The ending character code for the segment at the end of the low search range.

  • access: protected
integer $_segmentCount = 0 (line 46)

The number of segments in the table.

  • access: protected
array $_segmentTableEndCodes = array() (line 65)

Array of ending character codes for each segment.

  • access: protected
array $_segmentTableIdDeltas = array() (line 84)

Array of character code to glyph delta values for each segment.

  • access: protected
array $_segmentTableIdRangeOffsets = array() (line 90)

Array of offsets into the glyph index array for each segment.

  • access: protected
array $_segmentTableStartCodes = array() (line 78)

Array of starting character codes for each segment.

  • access: protected
Methods
Constructor __construct (line 274)

Object constructor

Parses the raw binary table data. Throws an exception if the table is malformed.

  • access: public
  • throws: Zend_Pdf_Exception
Zend_Pdf_Cmap_SegmentToDelta __construct (string $cmapData)
  • string $cmapData: Raw binary cmap table data.

Redefinition of:
Zend_Pdf_Cmap::__construct()
Object constructor
getCoveredCharacters (line 251)

Returns an array containing the Unicode characters that have entries in this character map.

  • return: Unicode character codes.
  • access: public
array getCoveredCharacters ()

Redefinition of:
Zend_Pdf_Cmap::getCoveredCharacters()
Returns an array containing the Unicode characters that have entries in this character map.
glyphNumberForCharacter (line 205)

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.

  • return: Glyph number.
  • access: public
integer glyphNumberForCharacter (integer $characterCode)
  • integer $characterCode: Unicode character code (code point).

Redefinition of:
Zend_Pdf_Cmap::glyphNumberForCharacter()
Returns the glyph number corresponding to the Unicode character.
glyphNumbersForCharacters (line 116)

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().

  • return: Array of glyph numbers.
  • access: public
array glyphNumbersForCharacters (array $characterCodes)
  • array $characterCodes: Array of Unicode character codes (code points).

Redefinition of:
Zend_Pdf_Cmap::glyphNumbersForCharacters()
Returns an array of glyph numbers corresponding to the Unicode characters.

Inherited Methods

Inherited From Zend_Pdf_Cmap

 Zend_Pdf_Cmap::__construct()
 Zend_Pdf_Cmap::cmapWithTypeData()
 Zend_Pdf_Cmap::getCoveredCharacters()
 Zend_Pdf_Cmap::glyphNumberForCharacter()
 Zend_Pdf_Cmap::glyphNumbersForCharacters()
 Zend_Pdf_Cmap::_extractInt2()
 Zend_Pdf_Cmap::_extractUInt2()
 Zend_Pdf_Cmap::_extractUInt4()
Class Constants

Documentation generated on Thu, 18 Jan 2007 09:58:57 -0800 by phpDocumentor 1.3.1