SetaPDF_Core_Font_TrueType_Table_IndexToLocation A class representing the Index to Location (loca) in a TrueType file. https://www.microsoft.com/typography/otspec/loca.htm

File: /SetaPDF v2/Core/Font/TrueType/Table/IndexToLocation.php

Class hierarchy

Summary

Constants

TAG

const string SetaPDF_Core_Font_TrueType_Table_IndexToLocation::TAG = 'loca'

The tag name of this class


Properties

$_data

protected array SetaPDF_Core_Font_TrueType_Table::$_data = array()

Data of the table

$_entries

protected array SetaPDF_Core_Font_TrueType_Table::$_entries = array()

Configuration about table entries

$_numGlyphs

The number of glyphs in the font.

$_rawData

protected array SetaPDF_Core_Font_TrueType_Table::$_rawData = array()

Raw binary data read from the file


Static Methods

getClassName()

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

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

Parameters
$tag
 

Methods

_get()

protected SetaPDF_Core_Font_TrueType_Table::_get (
$name
): mixed

Get a value from the table.

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

Parameters
$name
 

_getRaw()

protected SetaPDF_Core_Font_TrueType_Table::_getRaw (
$name
): mixed

Get raw data from a specific table.

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

Parameters
$name
 

cleanUp()

Release memory.

getEntry()

Parameters
$name
 

getLocation()

Get the offset location of a single glyph.

Parameters
$glyphId : integer
 
Exceptions

Throws SetaPDF_Core_Font_Exception

getLocations()

public SetaPDF_Core_Font_TrueType_Table_IndexToLocation::getLocations (
integer[] $glyphIds
): integer[]

Get offset locations of glyphs.

Parameters
$glyphIds : integer[]
 
Exceptions

Throws SetaPDF_Core_Font_Exception

getRecord()