SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SegmentToDelta A class representing a subtable "Format 4: Segment mapping to delta values".

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

Class hierarchy

Summary

Properties

$_data

protected array SetaPDF_Core_Font_TrueType_Table::$_data = array()

Data of the table

$_entries

The entries of this subtable

$_idDeltas

$_idRangeOffsets

$_rangeOffsetPosition

$_rawData

protected array SetaPDF_Core_Font_TrueType_Table::$_rawData = array()

Raw binary data read from the file

$_searchIterations

$_tableRead

Flag specifying that the table data were read


Static Methods

getClassName()

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

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

Parameters
$tag : string
 

Methods

_get()

protected SetaPDF_Core_Font_TrueType_Table::_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 SetaPDF_Core_Font_TrueType_Table::_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
 

_readTable()

getAll()

Get all character code to glyph id mappings.

Return Values

The key is the unicode point and the value the glyph id.

Exceptions

Throws SetaPDF_Exception_NotImplemented

getEntry()

Parameters
$name
 

getEntrySelector()

getFormat()

Get the format of this subtable.

getGlyphIndex()

Get the glyph index by a character code.

Parameters
$charCode : integer
 
Exceptions

Throws SetaPDF_Exception_NotImplemented

getLanguage()

Get the language of this subtable.

getLength()

Get the length of this subtable.

getRangeShift()

getRecord()

getSearchRange()

getSegCountX2()

Get the doubled segmentation count.