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

IndexToLocation This class represents the "loca" table in a sub-setting context.

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

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

Class hierarchy

Summary

Properties

$_changedData

protected array AbstractTable::$_changedData = array()

The modified data.

$_format

private int IndexToLocation::$_format = 0

The table format.

$_locations

private int[] IndexToLocation::$_locations = array()

The glyph locations.

$_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 IndexToLocation::cleanUp (
void
): void

Release memory and cycled references.

getOriginalTable()

Gets the original table.

setFormat()

public IndexToLocation::setFormat (
int $value
): void

Set the location format.

0 for short offsets (Offset16), 1 for long (Offset32).

Parameters
$value : int
 
See

setLocations()

public IndexToLocation::setLocations (
int[] $data
): void

Set the glyph locations.

Parameters
$data : int[]
 

write()

Writes the table.

Parameters
$writer : \SetaPDF_Core_Writer_WriterInterface