class final readonly Optional · pdftoolkit/html-to-pdf 0.4.0
PDF\HtmlToPdf\Font\FontRunOne shaped source run, with the exact positions later consumed by the PDF painter.Inheritance and contracts
This type declares no parent, interface or trait.
Construction
__construct()
public function __construct(PDF\HtmlToPdf\Font\FontFace $font, PDF\Fonts\OpenType\ShapedText $text, float $size, float $width, PDF\HtmlToPdf\Font\FontMetrics $metrics, PDF\HtmlToPdf\Style\TextSpacing $spacing = new TextSpacing())Properties
| Declaration | Origin and documentation |
|---|---|
public readonly PDF\HtmlToPdf\Font\FontFace $font | PDF\HtmlToPdf\Font\FontRun |
public readonly PDF\HtmlToPdf\Font\FontMetrics $metrics | PDF\HtmlToPdf\Font\FontRun |
public readonly float $size | PDF\HtmlToPdf\Font\FontRun |
public readonly PDF\HtmlToPdf\Style\TextSpacing $spacing | PDF\HtmlToPdf\Font\FontRun |
public readonly PDF\Fonts\OpenType\ShapedText $text | PDF\HtmlToPdf\Font\FontRun |
public readonly float $width | PDF\HtmlToPdf\Font\FontRun |