Docs For Class Zend_Pdf_Cmap_SegmentToDelta

## 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) 2006 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
array $_glyphIndexArray
integer $_searchIterations
integer $_searchRange
integer $_searchRangeEndCode
integer $_segmentCount
array $_segmentTableEndCodes
array $_segmentTableIdDeltas
array $_segmentTableIdRangeOffsets
array $_segmentTableStartCodes
Method Summary
Zend_Pdf_Cmap_SegmentToDelta __construct (string $cmapData)
array getCoveredCharacters ()
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

#### Inherited Constants

Inherited from Zend_Pdf_Cmap

> Zend_Pdf_Cmap::MISSING_CHARACTER_GLYPH
> Zend_Pdf_Cmap::TYPE_BYTE_ENCODING
> Zend_Pdf_Cmap::TYPE_BYTE_ENCODING_STATIC
> Zend_Pdf_Cmap::TYPE_HIGH_BYTE_MAPPING
> Zend_Pdf_Cmap::TYPE_MIXED_COVERAGE
> Zend_Pdf_Cmap::TYPE_SEGMENTED_COVERAGE
> Zend_Pdf_Cmap::TYPE_SEGMENT_TO_DELTA
> Zend_Pdf_Cmap::TYPE_TRIMMED_ARRAY
> Zend_Pdf_Cmap::TYPE_TRIMMED_TABLE
> Zend_Pdf_Cmap::TYPE_UNKNOWN

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