SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping A class representing the Character To Glyph Index Mapping Table (cmapt) in a TrueType file.

File: /SetaPDF v2/Core/Font/TrueType/Table/CharacterToGlyphIndexMapping.php

Class hierarchy

Summary

Constants

PLATFORM_CUSTOM

const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_CUSTOM = 4

Custom Platform

PLATFORM_MAC

const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_MAC = 1

Macintosh Platform

PLATFORM_UNICODE

const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_UNICODE = 0

Unicode Platform

PLATFORM_WINDOWS

const integer SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::PLATFORM_WINDOWS = 3

Windows Platform

TAG

const string SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::TAG = 'cmap'

The tag name of this class


Properties

$_data

protected array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_data = array()

Data of the table

$_entries

protected array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_entries = array(...)

The entries in that table

$_rawData

protected array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_rawData = array()

Raw binary data read from the file

$_record

protected SetaPDF_Core_Font_TrueType_Table_Record SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_record

The main table record.

$_subTableRecords

private array SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::$_subTableRecords = array()

Records for the sub tables


Static Methods

getClassName()

public static SetaPDF_Core_Font_TrueType_Table::getClassName (
$tag
): string

Get a class name for a specific table by its tag name.

Parameters
$tag
 

Methods

_get()

protected SetaPDF_Core_Font_TrueType_Table::_get (
$name
): integer|float|mixed|null

Get a value from the table.

The properties are defined in the $_entries property of an implemented table.

Parameters
$name
 

_getRaw()

protected SetaPDF_Core_Font_TrueType_Table::_getRaw (
$name
): mixed|null

Get raw data from a specific table.

The properties are defined in the $_entries property of an implemented table.

Parameters
$name
 

_readSubTableData()

cleanUp()

Release cylced references / memory.

getNumTables()

Get the number of sub tables.

getRecord()

getSubTable()

Get a sub table.

Parameters
$platformId : integer
 
$encodingId : integer
 

getTableInformation()

Get information about available tables.

getVersion()

Get the table version.

hasSubTable()

public SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping::hasSubTable (
integer $platformId, integer $encodingId
): bool

Checks if a sub table exists in this font.

Parameters
$platformId : integer
 
$encodingId : integer