setasign\SetaPDF2\Core\Font\TrueType\Subset\Table

CharacterToGlyphIndexMapping This class represents the "cmap" table in a sub-setting context.

File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/CharacterToGlyphIndexMapping.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping

See https://www.microsoft.com/typography/otspec/cmap.htm for more details.

Class hierarchy

Summary

Properties

$_changedData

protected array AbstractTable::$_changedData = array()

The modified data.

$_originalTable


Static Methods

getClassName()

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

Get a class name by tag name.

Parameters
$tag : string
 
Exceptions

Throws \InvalidArgumentException


Methods

cleanUp()

public CharacterToGlyphIndexMapping::cleanUp (
void
): void

Release memory and cycled references.

getNumTables()

Gets the number of registered subtables.

getOriginalTable()

Gets the original table.

getSubTable()

Gets a subtable.

Parameters
$platformId : int
 
$encodingId : int
 

hasSubTable()

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

Checks whether the table already contains the given subtable or not.

Parameters
$plaformId : int
 
$encodingId : int
 

setSubTable()

Sets a subtable.

Parameters
$platformId : int
 
$encodingId : int
 
$table : \SetaPDF_Core_Font_TrueType_Subset_Table_CharacterToGlyphIndexMapping_SubTable
 

write()