forked from dblencowe/tfpdf
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
$pdf->AddFont('DejaVu','','DejaVuSansCondensed.ttf',true);
$pdf->SetFont('DejaVu','',14);
// Load a UTF-8 string from a file and print it
$txt = file_get_contents('HelloWorld.txt');
$pdf->Write(8,$txt);
fails, because AddFont sets a font key "dejavu" while SetFont looks for "dejavusanscondensed". This is due to the fact, that within AddFont "dejavu" is replaced by "dejavusanscondensed" when dejavusanscondensed-font-metrics.php is included. Changing the last line in this file to $fontkey = 'dejavu' solves the problem. By the way, this is the value in the old file dejavusanscondensed.mtx.php.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels