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

PDF\HtmlToPdf\Font\FontRun
One shaped source run, with the exact positions later consumed by the PDF painter.

Read the source declaration ↗

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())

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

Properties

DeclarationOrigin and documentation
public readonly PDF\HtmlToPdf\Font\FontFace $fontPDF\HtmlToPdf\Font\FontRun
public readonly PDF\HtmlToPdf\Font\FontMetrics $metricsPDF\HtmlToPdf\Font\FontRun
public readonly float $sizePDF\HtmlToPdf\Font\FontRun
public readonly PDF\HtmlToPdf\Style\TextSpacing $spacingPDF\HtmlToPdf\Font\FontRun
public readonly PDF\Fonts\OpenType\ShapedText $textPDF\HtmlToPdf\Font\FontRun
public readonly float $widthPDF\HtmlToPdf\Font\FontRun