i installed signwriter, configured the font path on the settings page and put this into my page.tpl.php

<?php
 $profile = signwriter_load_profile('menu_active_title');
			// at this point you could override any settings. for example:
			// $profile->fontsize = 43; // override the font size
			print signwriter_title_convert("foobar", $profile);
?>

"foobar" is not beeing rendered with the correct color and i get the following error:

    * warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/WORKSPACE_DRUPAL/testdrupal/sites/all/modules/signwriter/signwriter.module on line 643.
    * Unable to generate a signwriter image with font at size Array.


Comments

marcoka’s picture

i am not really sure what i did to get it finally working.

at first image->fintfile[0] was empty. I used a custom path from the beginning sites/default/files/signfonts. The result was the obve error. Then i thought maybe there are some linux permission errors so i chowned everything to www-data and did a chmod 777 to exclude write/read errors. Nothing
Then i moved the fonts to /files, edited each profile, saved and then it was WORKING, i moved the files back to files/signfonts, and it was still working. Strange but now its working.
(the whole time i was logged in as root (linux) for performing the operations).

devkinetic’s picture

i'm having this error as well, except i haven't been able to get it to work.

dreipunktnull’s picture

Make sure your font filenames are all lowercase. That's what made it work for me at least.

Regards,
Björn