I have both the TTF files and AFM files inside the font folder. (I
converted the TTF files at:
http://www.files-conversion.com/font-converter.php)
After that I changed the dompdf_font_family_cache_dlist.php with the
following:
'Calibri' => array (
'normal' => DOMPDF_FONT_DIR . 'Calibri',
'bold' => DOMPDF_FONT_DIR . 'Calibri-Bold',
'italic' => DOMPDF_FONT_DIR . 'Calibri-Oblique',
'bold_italic' => DOMPDF_FONT_DIR . 'Calibri-BoldOblique'
)
The TTF and AFM files are also named:
Calibri.ttf, Calibri.afm,
Calibri-Bold.ttf, Calibri-Bold.afm,
Calibri-Oblique.ttf, Calibri-Oblique.afm,
Calibri-BoldOblique.ttf, Calibri-BoldOblique.afm.
After that I changed the font family in the body to: font-family:
Calibri;. Now i didn't get an error, but the font didn't change to
calibri, but instead of that a standard webfont.
Is there something I did wrong now?