setasign\SetaPDF2\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
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping

Class hierarchy

Summary

Constants

PLATFORM_CUSTOM

Custom Platform

PLATFORM_MAC

Macintosh Platform

PLATFORM_UNICODE

Unicode Platform

PLATFORM_WINDOWS

Windows Platform

TAG

public const string CharacterToGlyphIndexMapping::TAG = 'cmap'

The tag name of this class


Properties

$_data

protected array AbstractTable::$_data = array()

Data of the table

$_entries

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

The entries in that table

$_rawData

protected array AbstractTable::$_rawData = array()

Raw binary data read from the file

$_record

$_subTableRecords

Records for the sub tables


Static Methods

getClassName()

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

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

Parameters
$tag : string
 

Methods

__construct()

_get()

protected AbstractTable::_get (
string $name
): mixed

Get a value from the table.

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

Parameters
$name : string
 

_getRaw()

protected AbstractTable::_getRaw (
string $name
): mixed

Get raw data from a specific table.

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

Parameters
$name : string
 

_readSubTableData()

Read sub table data.

cleanUp()

public CharacterToGlyphIndexMapping::cleanUp (
void
): void

Release cycled references / memory.

getEntry()

public AbstractTable::getEntry (
$name
): void
Parameters
$name
 

getNumTables()

Get the number of sub tables.

getRecord()

Get the record object.

getSubTable()

Get a sub table.

Parameters
$platformId : int
 
$encodingId : int
 

getTableInformation()

Get information about available tables.

getVersion()

Get the table version.

hasSubTable()

public CharacterToGlyphIndexMapping::hasSubTable (
int $platformId,
int $encodingId
): bool

Checks if a sub table exists in this font.

Parameters
$platformId : int
 
$encodingId : int