SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping A class representing the Character To Glyph Index Mapping Table (cmap) in a TrueType file. https://www.microsoft.com/typography/otspec/cmap.htm
File: /SetaPDF v2/Core/Font/TrueType/Table/CharacterToGlyphIndexMapping.php
Class hierarchy
Summary
Constants
PLATFORM_CUSTOM
public const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_CUSTOM = 4
Custom Platform
PLATFORM_MAC
public const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_MAC = 1
Macintosh Platform
PLATFORM_UNICODE
public const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_UNICODE = 0
Unicode Platform
PLATFORM_WINDOWS
public const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_WINDOWS = 3
Windows Platform
TAG
The tag name of this class
Properties
$_entries
protected array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_entries = array(...)
The entries in that table
$_subTableRecords
private array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_subTableRecords = array()
Records for the sub tables
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
_readSubTableData()
private SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::_readSubTableData (
void
): voidRead sub table data.
getNumTables()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::getNumTables (
void
): integerGet the number of sub tables.
getRecord()
public SetaPDF_Core_Font_TrueType_Table::getRecord (
void
): SetaPDF_Core_Font_TrueType_Table_RecordGet the record object.
getSubTable()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::getSubTable (
integer $platformId, integer $encodingId
): false|SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SubTableGet a sub table.
Parameters
- $platformId : integer
- $encodingId : integer
getTableInformation()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::getTableInformation (
void
): arrayGet information about available tables.
hasSubTable()
public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::hasSubTable (
integer $platformId, integer $encodingId
): boolChecks if a sub table exists in this font.
Parameters
- $platformId : integer
- $encodingId : integer