Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mpdf60] Różne fonty
maniek74
post
Post #1





Grupa: Zarejestrowani
Postów: 127
Pomógł: 0
Dołączył: 26.08.2013

Ostrzeżenie: (0%)
-----


Witam
Chciałem do aby pdf miał różne rodzaje fontów:
  1. <?php
  2. $html = '
  3. <body>
  4. <div style="font-family: mono; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div>
  5. <div style="font-family: fantasy; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div>
  6. <div style="font-family: arial; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div>
  7. <div style="font-family: lucidasansunicode; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div>
  8. <div style="font-family: albasuper; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div>
  9. ';
  10.  
  11.  
  12. define('_MPDF_URI','class/mpdf60/');
  13. define('_MPDF_PATH', 'class/mpdf60/');
  14.  
  15. include("class/mpdf60/mpdf.php");
  16.  
  17. $mpdf=new mPDF();
  18.  
  19.  
  20. $mpdf->SetDisplayMode('fullpage');
  21. $mpdf->debugfonts = true;
  22.  
  23. $mpdf->WriteHTML($html);
  24.  
  25. $mpdf->Output();
  26.  
  27. ?>


W wygenerowanym pdf tylko font mono jest inny reszta jest taka sama, może ktoś mnie naprowadzić jak dołączyć fonty w mpdf60
Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 06:48