forked from dblencowe/tfpdf
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I know how to print utf-8 text with custom fonts. But how about Arial and Courier?
Here is code to show case the issue:
$pdf = new PDF();
$pdf->AddPage();
// Arial
$pdf->SetFont('Arial','',14);
$pdf->Text(10, 10, 'Beløp');
// Courier
$pdf->SetFont('Courier','',14);
$pdf->Text(10, 20, 'Beløp');
// Custom font
$pdf->AddFont('GreatVibes','','GreatVibes.ttf',true);
$pdf->SetFont('GreatVibes','',14);
$pdf->Text(10, 30, 'Beløp');
$pdf->Output();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
