SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable This class is a generic representation of a "cmap" subtable in a sub-setting context.
File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/CharacterToGlyphIndexMapping/SubTable.php
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()
abstract public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::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_SubTable::setGlyphIndex (
int $charCode, int $index
): voidAdd/Change a mapping in the subtable.
Parameters
- $charCode : int
- $index : int
write()
abstract public SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable::write (): void
Writes the sub table.
Parameters
- $writer : SetaPDF_Core_Writer_WriterInterface