Did you upload from your local install to your remote? If so you should probably reset your font directory so the font can be loaded again on the server. Remove the dompdf_font_family_cache.php file (not the.dist file). I have a problem regards to font size. What dompdf thinks is the. Install the fonts for DOMPDF using load_font.php? Italics to be pushed down to a new line. Install new fonts; Installed fonts Clear font cache. AFM cache UFM UFM cache; sans-serif: normal: /var/www/html/lib-new/dompdf/lib/fonts/Helvetica.
I'm Using DOM PDF 0.6.0 Beta 2. I want to use custom fonts (Fonts: 'Segeo Print', 'Lucida Handwriting','Airplanes in the Night Sky') in PDF file.
I followed the guidelines to install and use fonts in my PHP Code, which is given here http://code.google.com/p/dompdf/wiki/CPDFUnicode
But I'm not able to get desire fonts in my PDF. You can find my code in this post. Please Let me know how I can resolve this issue.
hakre3 Answers
- go to your DOMPDF folder
- copy your font's as .ttf (TrueType Font) or .otf (OpenType Font) into the DOMPDF's root
- open your command line and run
- DOMPDF now created Adobe Font Metrics and copied it to lib/fonts/* - you can now use it with
If you want to install custom fonts to server without command based interfacethen you can do the following web based model to install the custom fonts
1- Download ejaz.php from here
2- Put this file to root of dompdf and follow the instruction written in it
How To Install New Fonts
no need of root or command/terminal access
Thanks!