Posted by e-anima on June 27, 2010 at 1:16pm
3 followers
Jump to:
| Project: | Signwriter |
| Version: | 6.x-2.0-beta2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
#1
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).
#2
i'm having this error as well, except i haven't been able to get it to work.
#3
Make sure your font filenames are all lowercase. That's what made it work for me at least.
Regards,
Björn