Setasign / FPDI

FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF.
https://www.setasign.com/fpdi
MIT License
1.09k stars 159 forks source link

AddFont use ttf file not work #145

Closed modstart closed 2 years ago

modstart commented 2 years ago

Add ttl font not work

$pdf->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf',true);

for the defination of AddFont fcuntion

function AddFont($family, $style='', $file='')
{
    // ...
}
JanSlabon commented 2 years ago

If you use FPDF with FPDI the expected parameter is the font definition file. Please see here how you can prepare such file.

TrueType fonts are only supported if you use FPDI with tFPDF or TCPDF. What generation library are you using?

JanSlabon commented 2 years ago

Closed due to inactivity.