Pdf/Cmap/ByteEncoding.php
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_ByteEncoding
Package: Zend_Pdf\Fonts
Throws
Returns
Returns
Implements the "byte encoding" character map (type 0).
This is the (legacy) Apple standard encoding mechanism and provides coverage
for characters in the Mac Roman character set only. Consequently, this cmap
type should be used only as a last resort.
The mapping from Mac Roman to Unicode can be found at
{@link http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/ROMAN.TXT}.
- Parent(s)
- \Zend_Pdf_Cmap
- Children
- \Zend_Pdf_Cmap_ByteEncoding_Static
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct(string $cmapData) : void
Object constructor
Parses the raw binary table data. Throws an exception if the table is
malformed.
ParametersName | Type | Description |
---|---|---|
$cmapData | string | Raw binary cmap table data. |
Exception | Description |
---|---|
\Zend_Pdf_Exception |
getCoveredCharacters() : array
Returns an array containing the Unicode characters that have entries in this character map.
Returns
Type | Description |
---|---|
array | Unicode character codes. |
glyphNumberForCharacter(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.
ParametersName | Type | Description |
---|---|---|
$characterCode | integer | Unicode character code (code point). |
Type | Description |
---|---|
integer | Glyph number. |
glyphNumbersForCharacters(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()}.
ParametersName | Type | Description |
---|---|---|
$characterCodes | array | Array of Unicode character codes (code points). |
Type | Description |
---|---|
array | Array of glyph numbers. |