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

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

Lire la déclaration source ↗

Héritage et contrats

Ce type ne déclare pas de parent, d’interface ou de trait.

Construction

__construct()

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

Déclarée par PDF\HtmlToPdf\Font\FontFace · Voir le code ↗

Méthodes déclarées

measure()

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

Déclarée par PDF\HtmlToPdf\Font\FontFace · Voir le code ↗

metrics()

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

Déclarée par PDF\HtmlToPdf\Font\FontFace · Voir le code ↗

shape()

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

Déclarée par PDF\HtmlToPdf\Font\FontFace · Voir le code ↗

Propriétés

DéclarationProvenance et documentation
public readonly PDF\Fonts\OpenType\TrueTypeFontProgram $programPDF\HtmlToPdf\Font\FontFace