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.
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}.
array $_glyphIndexArray = 'array'
Glyph index array. Stores the actual glyph numbers. The array keys are the translated Unicode code points.
__construct(
string $cmapData
)
:
Object constructor
Parses the raw binary table data. Throws an exception if the table is malformed.
getCoveredCharacters(
)
:
array
Returns an array containing the Unicode characters that have entries in this character map.
getCoveredCharactersGlyphs(
)
:
array
Returns an array containing the glyphs numbers that have entries in this character map.
Keys are Unicode character codes (integers)
This functionality is partially covered by glyphNumbersForCharacters(getCoveredCharacters()) call, but this method do it in more effective way (prepare complete list instead of searching glyph for each character code).
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.
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()}.