SetaPDF_Core_Font_TrueType_Table_IndexToLocation A class representing the Index to Location (loca) in a TrueType file.

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

Class hierarchy

Summary

Constants

TAG

The tag name of this class


Properties

$_data

Data of the table

$_entries

Configuration about table entries

$_rawData

Raw binary data read from the file


Static Methods

getClassName()

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

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

Parameters
$tag : $tag
 

Methods

__construct()

public SetaPDF_Core_Font_TrueType_Table::__construct ( SetaPDF_Core_Font_TrueType_Table_Record $record )

The constructor.

Parameters
$record : SetaPDF_Core_Font_TrueType_Table_Record
 

_get()

protected integer|float|mixed|null SetaPDF_Core_Font_TrueType_Table::_get ( $name $name )

Get a value from the table.

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

Parameters
$name : $name
 

_getRaw()

protected mixed|null SetaPDF_Core_Font_TrueType_Table::_getRaw ( $name $name )

Get raw data from a specific table.

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

Parameters
$name : $name
 

cleanUp()

public void SetaPDF_Core_Font_TrueType_Table::cleanUp ( void )

Release memory.

getLocation()

public integer SetaPDF_Core_Font_TrueType_Table_IndexToLocation::getLocation ( integer $glyphId )

Get the offset location of a single glyph.

Parameters
$glyphId : integer
 

getLocations()

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

Get offset locations of glyphs.

Parameters
$glyphIds : integer[]
 

getRecord()

public SetaPDF_Core_Font_TrueType_Table_Record SetaPDF_Core_Font_TrueType_Table::getRecord ( void )

Get the record object.