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
Static Methods
Methods
__construct()
public SetaPDF_Core_Font_TrueType_Table::__construct ()
The constructor.
Parameters
- $record : SetaPDF_Core_Font_TrueType_Table_Record
_ensureHMetrics()
protected SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::_ensureHMetrics (
integer $glyphId
): voidEnsures the metrics of a specific glyph.
Parameters
- $glyphId : integer
_get()
Get a value from the table.
The properties are defined in the $_entries property of an implemented table.
Parameters
- $name : string
_getRaw()
Get raw data from a specific table.
The properties are defined in the $_entries property of an implemented table.
Parameters
- $name : string
getAdvanceWidth()
public SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::getAdvanceWidth (
integer $glyphId
): integerGet the advance width of a specific glyph.
Parameters
- $glyphId : integer
getLeftSideBearing()
public SetaPDF_Core_Font_TrueType_Table_HorizontalMetrics::getLeftSideBearing (
integer $glyphId
): integerGet the left side bearing of a specifc glyph.
Parameters
- $glyphId : integer
getRecord()
public SetaPDF_Core_Font_TrueType_Table::getRecord (
void
): SetaPDF_Core_Font_TrueType_Table_RecordGet the record object.