class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0

PDF\HtmlToPdf\Font\FontMetrics
Distances in PDF points; descent is the positive distance below the baseline.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(float $ascent, float $descent, float $lineGap)

Declared by PDF\HtmlToPdf\Font\FontMetrics · View the code ↗

Declared methods

height()

public function height(): float

Declared by PDF\HtmlToPdf\Font\FontMetrics · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly float $ascentPDF\HtmlToPdf\Font\FontMetrics
public readonly float $descentPDF\HtmlToPdf\Font\FontMetrics
public readonly float $lineGapPDF\HtmlToPdf\Font\FontMetrics