class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0
PDF\HtmlToPdf\Font\FontFaceA caller-supplied, embeddable static TrueType face. No font discovery or file access.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 methods
measure()
public function measure(string $text, float $size, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing()): floatmetrics()
public function metrics(float $size): PDF\HtmlToPdf\Font\FontMetricsshape()
public function shape(string $text, float $size, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing()): PDF\HtmlToPdf\Font\FontRunProperties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\Fonts\OpenType\TrueTypeFontProgram $program | PDF\HtmlToPdf\Font\FontFace |