To add new font Arvo in DOMPdf I updated file dompdf_font_family_cache.dist and added following code -
'arvo' =>
array (
'normal' => DOMPDF_FONT_DIR . 'Arvo-Regular',
'bold' => DOMPDF_FONT_DIR . 'Arvo-Bold',
'italic' => DOMPDF_FONT_DIR . 'Arvo-Italic',
'bold_italic' => DOMPDF_FONT_DIR . 'Arvo-BoldItalic',
),
I included font files in lib/fonts directory I added style sheet in html -
font-family: arvo;
But new font is not added in result pdf. Please help me to resolve this problem.
Instead of manually modifying dompdf_font_family_cache you should use load_font.php or (in dompdf 0.6.0 beta 3) the web-based installer located at www/fonts.php.