API Documentation

Zend/Pdf/Cmap/TrimmedTable.php

Show: inherited
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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Subpackage
Fonts  
Version
$Id: TrimmedTable.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Pdf_Cmap_TrimmedTable

Package: Zend\Pdf\Fonts

Implements the "trimmed table mapping" character map (type 6).

This table type is preferred over the {@link Zend_Pdf_Cmap_SegmentToDelta} table when the Unicode characters covered by the font fall into a single contiguous range.

Parent(s)
\Zend_Pdf_Cmap
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotectedinteger  $_endCode= '0'

The ending character code covered by this table.

Default value0Details
Type
integer
Propertyprotectedarray  $_glyphIndexArray= 'array()'

Glyph index array. Stores the actual glyph numbers.

Default valuearray()Details
Type
array
Propertyprotectedinteger  $_startCode= '0'

The starting character code covered by this table.

Default value0Details
Type
integer

Methods

methodpublic__construct( string $cmapData ) : void

Object constructor

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

Parameters
Name Type Description
$cmapData string

Raw binary cmap table data.

Throws
Exception Description
\Zend_Pdf_Exception
methodpublicgetCoveredCharacters( ) : array

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

Returns
Type Description
array Unicode 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
Name Type Description
$characterCode integer

Unicode character code (code point).

Returns
Type Description
integer Glyph 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
Name Type Description
$characterCodes array

Array of Unicode character codes (code points).

Returns
Type Description
array Array of glyph numbers.
Documentation was generated by DocBlox 0.15.1.