setasign\SetaPDF2\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
Old class name (alias): \SetaPDF_Core_Font_TrueType_Subset_Table_HorizontalHeader

See https://www.microsoft.com/typography/otspec/hhea.htm for more details.

Class hierarchy

Summary

Properties

$_changedData

protected array AbstractTable::$_changedData = array()

The modified data.

$_originalTable


Static Methods

getClassName()

public static AbstractTable::getClassName (
string $tag
): string

Get a class name by tag name.

Parameters
$tag : string
 
Exceptions

Throws \InvalidArgumentException


Methods

cleanUp()

public AbstractTable::cleanUp (
void
): void

Release memory and cycled references.

getOriginalTable()

Gets the original table.

setAdvanceWidthMax()

public HorizontalHeader::setAdvanceWidthMax (
int $value
): void

Set the maximum advance width value in 'hmtx' table.

Parameters
$value : int
 

setMinLeftSideBearing()

public HorizontalHeader::setMinLeftSideBearing (
int $value
): void

Set the minimum left sidebearing value in 'hmtx' table.

Parameters
$value : int
 

setMinRightSideBearing()

public HorizontalHeader::setMinRightSideBearing (
int $value
): void

Sets the minimum right sidebearing value.

Calculated as Min(aw - lsb - (xMax - xMin)).

Parameters
$value : int
 

setNumberOfHMetrics()

public HorizontalHeader::setNumberOfHMetrics (
int $value
): void

Sets the number of hMetric entries in 'hmtx' table.

Parameters
$value : int
 

setXMaxExtent()

public HorizontalHeader::setXMaxExtent (
int $xMaxExtent
): void

Sets the xMax extend value.

Calculated as Max(lsb + (xMax - xMin))

Parameters
$xMaxExtent : int
 

write()

Writes the table.

Parameters
$writer : \SetaPDF_Core_Writer_WriterInterface