SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding A class representing a subtable "Format 0: Byte encoding table".
File: /SetaPDF v2/Core/Font/TrueType/Table/CharacterToGlyphIndexMapping/ByteEncoding.php
Class hierarchy
Summary
Properties
$_charsToGlyphs
protected array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding::$_charsToGlyphs = array()
Chars to glyph array
$_entries
protected array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SubTable::$_entries = array(...)
The entries in this subtable
$_tableRead
protected bool SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding::$_tableRead = false
Flag specifying that the table data were read
Static Methods
Methods
__construct()
public SetaPDF_Core_Font_TrueType_Table::__construct ()
The constructor.
Parameters
- $record : SetaPDF_Core_Font_TrueType_Table_Record
_get()
Get a value from the table.
The properties are defined in the $_entries property of an implemented table.
Parameters
- $name : string
_getRaw()
Get raw data from a specific table.
The properties are defined in the $_entries property of an implemented table.
Parameters
- $name : string
_readTable()
protected SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding::_readTable (
void
): voidRead the subtable data.
cleanUp()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding::cleanUp (
void
): voidRelease memory
getAll()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding::getAll (
void
): array<int, int>Get all character code to glyph id mappings.
Return Values
The key is the unicode point and the value the glyph id.
Exceptions
getFormat()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SubTable::getFormat (
void
): intGet the format of this subtable.
getGlyphIndex()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_ByteEncoding::getGlyphIndex (
integer $charCode
): integerGet the glyph index by a character code.
Parameters
- $charCode : integer
Exceptions
getLanguage()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SubTable::getLanguage (
void
): intGet the language of this subtable.
getLength()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SubTable::getLength (
void
): intGet the length of this subtable.
getRecord()
public SetaPDF_Core_Font_TrueType_Table::getRecord (
void
): SetaPDF_Core_Font_TrueType_Table_RecordGet the record object.