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

Class hierarchy

Summary

Properties

$_data

Data of the table

$_endCodes

protected array SegmentToDelta::$_endCodes = array()

The end codes

$_entries

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

The entries of this subtable

$_idDeltas

protected array SegmentToDelta::$_idDeltas = array()

The id delta valuess

$_idRangeOffsets

protected array SegmentToDelta::$_idRangeOffsets = array()

The id range offsets

$_rangeOffsetPosition

The range offset position

$_rawData

Raw binary data read from the file

$_searchIterations

The search iteration count

$_searchRange

The search range value

$_segmentCount

The segment count

$_segments

protected array SegmentToDelta::$_segments = array()

The segments

$_startCodes

protected array SegmentToDelta::$_startCodes = array()

The start codes

$_tableRead

protected bool SegmentToDelta::$_tableRead = false

Flag specifying that the table data were read


Static Methods

getClassName()

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

Parameters
$tag : string
 

Methods

_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
 

_readTable()

protected SegmentToDelta::_readTable (
void
): void

Reads the table data.

cleanUp()

public SegmentToDelta::cleanUp (
void
): void

Release memory.

getAll()

public SegmentToDelta::getAll (
void
): array<int, int>

Get all character code to glyph id mappings.

Return Values

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

Exceptions

Throws \setasign\SetaPDF2\NotImplementedException

getEntry()

getEntrySelector()

public SegmentToDelta::getEntrySelector (
void
): int

Get the entry selector value.

getFormat()

public SubTable::getFormat (
void
): int

Get the format of this subtable.

getGlyphIndex()

public SegmentToDelta::getGlyphIndex (
int $charCode
): int

Get the glyph index by a character code.

Parameters
$charCode : int
 
Exceptions

Throws \setasign\SetaPDF2\NotImplementedException

getLanguage()

public SubTable::getLanguage (
void
): int

Get the language of this subtable.

getLength()

public SubTable::getLength (
void
): int

Get the length of this subtable.

getRangeShift()

public SegmentToDelta::getRangeShift (
void
): int

Get the range shoft value.

getSearchRange()

public SegmentToDelta::getSearchRange (
void
): int

Get the search range value.

getSegCountX2()

public SegmentToDelta::getSegCountX2 (
void
): int

Get the doubled segmentation count.