Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Running Drupal 5.1, php5.2, have created signwriter-cache/ and fonts/ folders in theme folder with 777 permissions. Every page prints this error:
* warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /sss/xxx/xxx.com/htdocs/modules/signwriter/signwriter.module on line 534.
* Is your font set correctly in the signwriter profile?
There is a font in the fonts/ directory.
I've done a ton of searching but am not finding much via Google to help me resolve this problem with Drupal. I wonder if you can provide any assistance in getting signwriter to work so I don't have to switch to sIFR or a self-made solution?
Thanks,
Bob
Comments
Comment #1
bobwaycott CreditAttribution: bobwaycott commentedNevermind. Apparently the problem was me storing fonts in the 'themes' folder. When I moved the fonts under files/ the error went away.
However, now none of the generated images are showing up. I can see them listed in the signwriter-cache folder, but there is no display in four different browsers. I have tried adjusting the filter order, but am getting nothing.
Comment #2
bobwaycott CreditAttribution: bobwaycott commentedIf this helps:
Checking on the Activity error in Safari, the browser reports it cannot find the host for the generated signwriter file.
Comment #3
bobwaycott CreditAttribution: bobwaycott commentedSOLVED.
For those that might run into this:
I had to create both cache and fonts directories in the files/ folder with 777 permissions.
Also, I had to set the fonts directory as 'files/fonts/' (without the ' ') and the cache as 'signwriter-cache/' (without the ' ')
Without the directories set exactly like that, nothing worked. The module wouldn't even accept the full system path for these settings.
Thanks for the module. Now that I have it working, I like it a lot. And it works properly in all browsers (sIFR is great, but Linux doesn't support transparent Flash)
Thanks again.
Comment #4
bobwaycott CreditAttribution: bobwaycott commentedThis problem is back, and there have been no changes in my setup.
Comment #5
usonian CreditAttribution: usonian commentedI believe this should work as long as the web server has read permissions on the font file itself - I was getting the imagettfbbox() error on a local OS X install, then I looked at the font file and its permissions were set to 600. Setting them to 644 did the trick.
Comment #6
Agileware CreditAttribution: Agileware commentedHopefully some of these issues have gone away with the development release of signwriter. You now have the ability to set both the cache directory and the search path for fonts.
The majority of issues people have with this module, is purely permissions/directory locations.
Thanks for your input, we're trying to make this more user friendly.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
-Slava- CreditAttribution: -Slava- commentedDon't know if that will help someone, but i got this error
* warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font ...
when i used in a script font that wasn't installed on my system (Ubuntu 8.4)
Just copying the font file into the folder where the script resided didn't help.
SOLUTION: I copied the font into "/usr/share/fonts/" and execute "sudo fc-cache -f -v"
The php seemed to search for that font only in system fonts directory..
Comment #9
jboeger CreditAttribution: jboeger commentedI am still having this problem w/ a fresh Drupal 6.60 installation.
The error:
Fatal error: Call to undefined function imagettfbbox() in /home/avalonvi/public_html/superclean/sites/all/modules/signwriter/signwriter.module on line 843
I believe I have all my permissions squared away. Stumped!!
Comment #10
Agileware CreditAttribution: Agileware commentedfunction imagettfbbox() is a php function so it would seem to be an issue with your install of php, not signwriter.
Possible causes are:
* You are running a php version earlier than 4, which is extremely unlikely as Drupal requires at least 4.3.5.
* You do not have the GD library. - To check this you can download and enable the devel module and click it's phpinfo() menu item or run this script:
On the phpinfo screen in the section titled 'additional .ini files parsed' one of the files should be called gd.ini.
If you don't have that file listed then you will have to install the GD library.
Hopefully this helps you.
Comment #11
drupal_841 CreditAttribution: drupal_841 commentedYou are awesome! This works for me.
Comment #12
roper. CreditAttribution: roper. commentedI'm getting the same error and I can't figure out why.
- I have a profile named "Title" which recognizes my font file in the select-box
- files directory is 775
- files/signwriter-cache is 775
- files/chops.ttf is 644
- Drupal 5.7, PHP 4.4.9
- GD library should be fine since I have imagecache working without problems
I'm using this code in my theme's page.tpl.php file:
The HTML output is:
<span style="display: none;">Page title</span><img alt="Page title" src=""/>
No images are created in the signwriter-cache folder. Any help would be MUCH appreciated, as this module sounds awesome! Thank you.
Comment #13
roper. CreditAttribution: roper. commentedSorry, forgot to re-open the issue (that's what I'm supposed to do, right?). Also, I should point out that I've tried modifying all relevant files and folders to 777 permissions just in case, but it made no difference. :-/
Comment #14
apadernoComment #15
biscuit.tech CreditAttribution: biscuit.tech commentedmake sure your file extension is lower-case, .TTF -> .ttf - that did the trick for me.
Comment #16
h-man24 CreditAttribution: h-man24 commentedHello Folks,
in my case, i'm trying to use signwriter to change the box titles. The paths are fine, GD is installed, so the grafics are created in signwriter-cache, but i still get the error
warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in .../sites/default/modules/signwriter/signwriter.module on line 623.
any trick to solve this problem? i'm using Drupal 5.18
thanks in advanced
Stefan
Comment #17
h-man24 CreditAttribution: h-man24 commenteddamned,
Problem solved. In the example is a little mistake.
<img src="'. signwriter_url($ S ignwriter) .'" alt="'. $block->subject .'" />
should be
<img src="'. signwriter_url($ s ignwriter) .'" alt="'. $block->subject .'" />
now its working fine.
Comment #18
Agileware CreditAttribution: Agileware commentedThe example in the documentation page, http://drupal.org/node/336075
Has been updated, small typo. Thank for pointing that out @h-man24.
Comment #19
HongPong CreditAttribution: HongPong commentedI should add that sometimes it seems PHP can't parse all ttf fonts. To determine this, put in a more generic (i.e. for example a common Microsoft) font, and then the font you're working with.
If it parses the more generic font but not yours (and you double checked permissions are the same) then you at least know where the problem is. I'm there right now...
Comment #20
hixster CreditAttribution: hixster commentedI was suffering from this issue , and was poking around for ages trying to fix it, checking font paths etc...
Eventually I found that I had deleted one of my profiles and in the menu setting tab I still had that (old deleted) profile selected for use which was causing the error.
Hope that helps.
Hix
Comment #21
Agileware CreditAttribution: Agileware commentedIs this still a problem?
Have any of these latest suggestions helped?
Comment #22
DuaelFrThis version of Signwriter is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.