setasign\SetaPDF2\Core\Font\TrueType\Subset\Table
HorizontalMetrics This class represents the "hmtx" table in a sub-setting context.
File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/HorizontalMetrics.php
Old class name (alias):
\SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalMetrics
See https://www.microsoft.com/typography/otspec/hmtx.htm for more details.
Class hierarchy
Summary
Properties
$_optimized
private ?array HorizontalMetrics::$_optimized
The optimized horizontal metrics.
Static Methods
getClassName()
Methods
__construct()
addHMetric()
public HorizontalMetrics::addHMetric (
int $glyphId,
int $advanceWidth,
int $leftSideBearing
): voidint $advanceWidth,
int $leftSideBearing
Paired advance width and left side bearing values for each glyph.
Records are indexed by glyph id. There is no glyph id gap allowed in the data that gets added.
Parameters
- $glyphId : int
- $advanceWidth : int
- $leftSideBearing : int