Chciałem do aby pdf miał różne rodzaje fontów:
<?php $html = ' <body> <div style="font-family: mono; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div> <div style="font-family: fantasy; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div> <div style="font-family: arial; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div> <div style="font-family: lucidasansunicode; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div> <div style="font-family: albasuper; font-size: 20pt; font-weight: bold;">WYKSZTAŁCENIE</div> '; include("class/mpdf60/mpdf.php"); $mpdf=new mPDF(); $mpdf->SetDisplayMode('fullpage'); $mpdf->debugfonts = true; $mpdf->WriteHTML($html); $mpdf->Output(); exit; ?>
W wygenerowanym pdf tylko font mono jest inny reszta jest taka sama, może ktoś mnie naprowadzić jak dołączyć fonty w mpdf60
Pozdrawiam