SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics A class representing the Horizontal Metrics Table (hmtx) in a TrueType file. https://www.microsoft.com/typography/otspec/hmtx.htm

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

Class hierarchy

Summary

Constants

TAG

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

$_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 (
string $tag
): string

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

Parameters
$tag : string
 

Methods

_ensureHMetrics()

Ensures the metrics of a specific glyph.

Parameters
$glyphId : integer
 

_get()

protected SetaPDF_Core_Font_TrueType_Table::_get (
string $name
): mixed

Get a value from the table.

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

Parameters
$name : string
 

_getNumberOfMetrics()

Get the number of metrics.

_getRaw()

protected SetaPDF_Core_Font_TrueType_Table::_getRaw (
string $name
): mixed

Get raw data from a specific table.

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

Parameters
$name : string
 

cleanUp()

Release memory.

getAdvanceWidth()

Get the advance width of a specific glyph.

Parameters
$glyphId : integer
 

getEntry()

Parameters
$name
 

getLeftSideBearing()

Get the left side bearing of a specifc glyph.

Parameters
$glyphId : integer
 

getRecord()