You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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.
The text was updated successfully, but these errors were encountered:
tonda13
added a commit
to tonda13/tfpdf
that referenced
this issue
Feb 22, 2019
$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.
The text was updated successfully, but these errors were encountered: