SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_ByteEncoding This class represents the format byte encoding (format0) subtable in a sub-setting context.
File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/CharacterToGlyphIndexMapping/ByteEncoding.php
See https://www.microsoft.com/typography/otspec/cmap.htm#format0 for more details.
Class hierarchy
Implements
Summary
Properties
$_language
protected int SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::$_language
The language of the cmap subtable.
$_mapping
protected array SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::$_mapping = array()
The mapping.
Methods
__construct()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::__construct (
int $language
)The constructor.
Parameters
- $language : int
cleanUp()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::cleanUp (
void
): voidRelease memory and cycled references.
count()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::count (
void
): intGets the size of the mapping.
getFormat()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_ByteEncoding::getFormat (
void
): intReturns the sub table format
getLanguage()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::getLanguage (
void
): intReturns the language.
setGlyphIndex()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_ByteEncoding::setGlyphIndex (
int $charCode, int $index
): voidAdd/Change a mapping in the subtable.
Parameters
- $charCode : int
- $index : int
write()
public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_ByteEncoding::write (): void
Writes the sub table.
Parameters
- $writer : SetaPDF_Core_Writer_WriterInterface