Advertisement
krot

fPDF Font File Converter аналог ttf2pt1

Dec 8th, 2016
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. http://fpdf.fruit-lab.de/index.php?id=3
  2.  
  3.  
  4. $pdf=new FPDF();
  5. //нужно подключить шрифт, указав имя шрифта и имя файла.
  6. $pdf->AddFont('TimesNewRomanPSMT','','23559e57567a76a6c4391b327a52606f_times.php');
  7. $pdf->AddPage();
  8. $pdf->SetFont('TimesNewRomanPSMT','',35);
  9. $pdf->Cell(10,10,' текст!');
  10. $pdf->Output();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement