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

PDF\HtmlToPdf\Font\PreparedLayout
Immutable, face-scoped tables; shaping engines allocate fresh budgets per run.
Unicode provenance follows PDFToolkit pdf-fonts 0.2 TextLayout (MIT,
Copyright (c) 2026 Mathias STRASSER; see the repository LICENSE).

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

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

Declared methods

create()

public function create(PDF\Fonts\TrueType\UnicodeText $text, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing(), float $fontUnitsPerPoint = 1): PDF\Fonts\OpenType\ShapedText

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