class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0
PDF\HtmlToPdf\Font\PreparedLayoutImmutable, 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).Inheritance and contracts
This type declares no parent, interface or trait.
Construction
__construct()
public function __construct(PDFToolkit\OpenType\Sfnt\SfntFont $font, PDFToolkit\OpenType\Sfnt\ReadLimits $limits)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