I using domPDF and I' trying to add a custom font (neosans).
I use dompdf/www/fonts.php
to add my font into domPDF. .ufm
and .ttf
files were created. I used a online convert to create .afm
file and I put it in the fonts folder.
The font name is added into dompdf_font_family_cache.dist.php
and dompdf_font_family_cache.php
.
In CSS (<style>
tag in the document) I set :
font-family: neosans;
but when I display the PDF the font is blank.
If I set Arial it's ok.