setasign\SetaPDF2\Core\Font\TrueType\Table

HorizontalHeader A class representing the Horizontal Header Table (hhea) in a TrueType file. https://www.microsoft.com/typography/otspec/hhea.htm

File: /SetaPDF v2/Core/Font/TrueType/Table/HorizontalHeader.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_HorizontalHeader

Class hierarchy

Summary

Constants

TAG

public const string HorizontalHeader::TAG = 'hhea'

The tag name of this class


Properties

$_data

protected array AbstractTable::$_data = array()

Data of the table

$_entries

protected array HorizontalHeader::$_entries = array(...)

The entries of this table.

$_rawData

protected array AbstractTable::$_rawData = array()

Raw binary data read from the file

$_record


Static Methods

getClassName()

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

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

Parameters
$tag : string
 

Methods

__construct()

_get()

protected AbstractTable::_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
 

_getRaw()

protected AbstractTable::_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()

public AbstractTable::cleanUp (
void
): void

Release memory.

getAdvanceWidthMax()

public HorizontalHeader::getAdvanceWidthMax (
void
): int

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

getAscender()

public HorizontalHeader::getAscender (
void
): int

Get the typographic ascent.

getCaretOffset()

public HorizontalHeader::getCaretOffset (
void
): int

Get the amount by which a slanted highlight on a glyph needs to be shifted to produce the best appearance.

getCaretSlopeRise()

public HorizontalHeader::getCaretSlopeRise (
void
): int

Get the caret slope rise value.

getCaretSlopeRun()

public HorizontalHeader::getCaretSlopeRun (
void
): int

Get the caret slope run value.

getDescender()

public HorizontalHeader::getDescender (
void
): int

Get the typographic descent.

getEntry()

public AbstractTable::getEntry (
$name
): void
Parameters
$name
 

getLineGap()

public HorizontalHeader::getLineGap (
void
): int

Get the typographic line gap.

getMajorVersion()

public HorizontalHeader::getMajorVersion (
void
): int

Get the major version number of this table.

getMetricDataFormat()

Get the metric format.

getMinLeftSideBearing()

Get the minimum left side bearing value in 'hmtx' table.

getMinRightSideBearing()

Get the minimum right side bearing value.

getMinorVersion()

public HorizontalHeader::getMinorVersion (
void
): int

Get the minor version number of this table.

getNumberOfHMetrics()

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

getRecord()

Get the record object.

getXMaxExtent()

public HorizontalHeader::getXMaxExtent (
void
): int

Get the maximum right side bearing value.