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

PDF\HtmlToPdf\Font\FontFace
A caller-supplied, embeddable static TrueType face. No font discovery or file access.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(string $bytes, PDF\HtmlToPdf\Font\FontLimits $limits = new FontLimits())

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

Declared methods

measure()

public function measure(string $text, float $size, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing()): float

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

metrics()

public function metrics(float $size): PDF\HtmlToPdf\Font\FontMetrics

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

shape()

public function shape(string $text, float $size, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing()): PDF\HtmlToPdf\Font\FontRun

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

Properties

DeclarationOrigin and documentation
public readonly PDF\Fonts\OpenType\TrueTypeFontProgram $programPDF\HtmlToPdf\Font\FontFace