SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader This class represents the "hhea" table in a sub-setting context.
File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/HorizontalHeader.php
See https://www.microsoft.com/typography/otspec/hhea.htm for more details.
Class hierarchy
Summary
Properties
Static Methods
getClassName()
Methods
__construct()
The constructor.
Parameters
getOriginalTable()
public SetaPDF_Core_Font_TrueType_Subset_Table::getOriginalTable (
void
): SetaPDF_Core_Font_TrueType_TableGets the original table.
setAdvanceWidthMax()
public SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader::setAdvanceWidthMax (
int $value
): voidSet the maximum advance width value in 'hmtx' table.
Parameters
- $value : int
setMinLeftSideBearing()
public SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader::setMinLeftSideBearing (
int $value
): voidSet the minimum left sidebearing value in 'hmtx' table.
Parameters
- $value : int
setMinRightSideBearing()
public SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader::setMinRightSideBearing (
int $value
): voidSets the minimum right sidebearing value.
Calculated as Min(aw - lsb - (xMax - xMin)).
Parameters
- $value : int
setNumberOfHMetrics()
public SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader::setNumberOfHMetrics (
int $value
): voidSets the number of hMetric entries in 'hmtx' table.
Parameters
- $value : int
setXMaxExtent()
public SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader::setXMaxExtent (
int $xMaxExtent
): voidSets the xMax extend value.
Calculated as Max(lsb + (xMax - xMin))
Parameters
- $xMaxExtent : int
write()
Writes the table.
Parameters
- $writer : SetaPDF_Core_Writer_WriterInterface