Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
glyphNumbersForCharacters ($characterCodes) | |
glyphNumberForCharacter ($characterCode) | |
getCoveredCharacters () | |
getCoveredCharactersGlyphs () | |
__construct ($cmapData) | |
![]() | |
__construct ($cmapData) | |
glyphNumbersForCharacters ($characterCodes) | |
glyphNumberForCharacter ($characterCode) | |
getCoveredCharacters () | |
getCoveredCharactersGlyphs () | |
Protected Attributes | |
$_startCode = 0 | |
$_endCode = 0 | |
$_glyphIndexArray = array() | |
Additional Inherited Members | |
![]() | |
static | cmapWithTypeData ($cmapType, $cmapData) |
![]() | |
const | TYPE_BYTE_ENCODING = 0x00 |
const | TYPE_HIGH_BYTE_MAPPING = 0x02 |
const | TYPE_SEGMENT_TO_DELTA = 0x04 |
const | TYPE_TRIMMED_TABLE = 0x06 |
const | TYPE_MIXED_COVERAGE = 0x08 |
const | TYPE_TRIMMED_ARRAY = 0x0a |
const | TYPE_SEGMENTED_COVERAGE = 0x0c |
const | TYPE_BYTE_ENCODING_STATIC = 0xf1 |
const | TYPE_UNKNOWN = 0xff |
const | MISSING_CHARACTER_GLYPH = 0x00 |
![]() | |
_extractInt2 (&$data, $index) | |
_extractUInt2 (&$data, $index) | |
_extractUInt4 (&$data, $index) | |
Definition at line 39 of file TrimmedTable.php.
__construct | ( | $cmapData | ) |
Object constructor
Parses the raw binary table data. Throws an exception if the table is malformed.
string | $cmapData | Raw binary cmap table data. |
Zend_Pdf_Exception |
Definition at line 167 of file TrimmedTable.php.
getCoveredCharacters | ( | ) |
Returns an array containing the Unicode characters that have entries in this character map.
Definition at line 124 of file TrimmedTable.php.
getCoveredCharactersGlyphs | ( | ) |
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).
Definition at line 145 of file TrimmedTable.php.
glyphNumberForCharacter | ( | $characterCode | ) |
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.
integer | $characterCode | Unicode character code (code point). |
Definition at line 109 of file TrimmedTable.php.
glyphNumbersForCharacters | ( | $characterCodes | ) |
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().
array | $characterCodes | Array of Unicode character codes (code points). |
Definition at line 80 of file TrimmedTable.php.
|
protected |
Definition at line 54 of file TrimmedTable.php.
|
protected |
Definition at line 60 of file TrimmedTable.php.
|
protected |
Definition at line 48 of file TrimmedTable.php.