To add a new Arvo font to DOMPdf, I updated the dompdf_font_family_cache.dist file and added the 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 the font files in the lib / fonts directory I added the stylesheet in html -
font-family: arvo;
But the new font is not added to the pdf result. Please help me solve this problem.
source
share