SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics A class representing the Horizontal Metrics Table (hmtx) in a TrueType file.

File: /SetaPDF/Core/Font/TrueType/Table/HorizontalMetrics.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
 

_ensureHMetrics()

protected void SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::_ensureHMetrics ( integer $glyphId )

Ensures the metrics of a specific glyph.

Parameters
$glyphId : integer
 

_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
 

_getNumberOfMetrics()

private integer SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::_getNumberOfMetrics ( void )

Get the number of metrics.

_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.

getAdvanceWidth()

public integer SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::getAdvanceWidth ( integer $glyphId )

Get the advance width of a specific glyph.

Parameters
$glyphId : integer
 

getLeftSideBearing()

public integer SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::getLeftSideBearing ( integer $glyphId )

Get the left side bearing of a specifc glyph.

Parameters
$glyphId : integer
 

getRecord()

public SetaPDF_Core_Font_TrueType_Table_Record SetaPDF_Core_Font_TrueType_Table::getRecord ( void )

Get the record object.