On Tuesday, February 7, 2012 1:10:29 PM UTC-5, Pablo Ambram wrote:
> Using the diagnostic tool I get that the file ttf2afm is not readable.
> What should I do?
> I already set permissions to +x to the file, and changed the group to
> www-data. Still nothing.
> What can I do?
> UBUNTU 10.10
ttf2afm is not a necessary component so ignore it. ttf2afm (or, more
specifically ttf2ufm) is used to process fonts (using load_font.php) for
installation into dompdf.
Of course, if you need custom font support you can't ignore the error. In
that case you have three options:
1. compile a fresh copy of ttf2ufm from the source included with dompdf
then modify the TTF2AFM configuration constant to point to your compiled
file
2. use the web-based font prep tool<http://eclecticgeek.com/dompdf/load_font.php>to process your fonts
3. wait for 0.6.0 beta 3
I recommend option three. Things will be much easier since beta 3 drops
ttf2afm in favor of php-font-lib.