class final readonly Optional · pdftoolkit/pdf-fonts 0.1.7

PDF\Fonts\TrueType\HorizontalMetrics
hmtx widths in font units, including the repeated final advance width.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Fonts\TrueType\BinaryReader $table, int $glyphCount, int $numberOfHMetrics, int $unitsPerEm)

Declared by PDF\Fonts\TrueType\HorizontalMetrics · View the code ↗

Declared methods

advanceWidth()

public function advanceWidth(int $glyphId): int

Declared by PDF\Fonts\TrueType\HorizontalMetrics · View the code ↗

pdfWidth()

public function pdfWidth(int $glyphId): float

Declared by PDF\Fonts\TrueType\HorizontalMetrics · View the code ↗

scale()

public function scale(int $fontUnits): float

Declared by PDF\Fonts\TrueType\HorizontalMetrics · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly int $unitsPerEmPDF\Fonts\TrueType\HorizontalMetrics