Pdf/Cmap/SegmentToDelta.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Subpackage
Fonts  
Version
$Id$  

\Zend_Pdf_Cmap_SegmentToDelta

Package: Zend_Pdf\Fonts
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).
Parent(s)
\Zend_Pdf_Cmap
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_glyphIndexArray = array()
Glyph index array. Stores glyph numbers, used with range offset.
Default valuearray()Details
Type
array
>VPropertyprotectedinteger $_searchIterations = 0
The number of binary search steps required to cover the entire search range.
Default value0Details
Type
integer
>VPropertyprotectedinteger $_searchRange = 0
The size of the binary search range for segments.
Default value0Details
Type
integer
>VPropertyprotectedinteger $_searchRangeEndCode = 0
The ending character code for the segment at the end of the low search range.
Default value0Details
Type
integer
>VPropertyprotectedinteger $_segmentCount = 0
The number of segments in the table.
Default value0Details
Type
integer
>VPropertyprotectedarray $_segmentTableEndCodes = array()
Array of ending character codes for each segment.
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_segmentTableIdDeltas = array()
Array of character code to glyph delta values for each segment.
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_segmentTableIdRangeOffsets = array()
Array of offsets into the glyph index array for each segment.
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_segmentTableStartCodes = array()
Array of starting character codes for each segment.
Default valuearray()Details
Type
array

Methods

methodpublic__construct(string $cmapData) : void

Object constructor

Parses the raw binary table data. Throws an exception if the table is malformed.
Parameters
NameTypeDescription
$cmapDatastring

Raw binary cmap table data.

Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublicgetCoveredCharacters() : array

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

Returns
TypeDescription
arrayUnicode character codes.
methodpublicglyphNumberForCharacter(integer $characterCode) : integer

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 {@link glyphNumbersForCharacters()} which is optimized for bulk operations.
Parameters
NameTypeDescription
$characterCodeinteger

Unicode character code (code point).

Returns
TypeDescription
integerGlyph number.
methodpublicglyphNumbersForCharacters(array $characterCodes) : array

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 {@link glyphNumberForCharacter()}.
Parameters
NameTypeDescription
$characterCodesarray

Array of Unicode character codes (code points).

Returns
TypeDescription
arrayArray of glyph numbers.
Documentation was generated by phpDocumentor 2.2.0 .