I've tried every path and location I can think of to get this to work with no results. I just get a bunch of errors asking me if my font path is correct. It would be nice if the README included a bit more by way of COMPLETE examples.

Thanks.

CommentFileSizeAuthor
#5 impact.ttf_.txt132.89 KBrconstantine

Comments

Justin Freeman’s picture

G'day

Thanks for the helpful comment. This project is not abandoned, the author is currently doing a world tour as part of 3 months holiday, so our activity has been low as a result.

This module was written for one of our clients and submitted back to the Drupal community and is in active use, so I can vouch that the code 'does work'.

Feel free to submit patches or documentation and I'll see that it gets incorporated.

Cheers!

Justin Freeman’s picture

Also - if you are getting errors. It helps to have some detailed description of the error, error logs and details of how the software has been installed and location of fonts.

Thanks

rconstantine’s picture

I meant to get back to you sooner. I will post any errors soon. Like I said, the errors revolved around the font being missing.

What might be able to clear things up is what the path that we enter should look like. For "Cache Directory" I have "files/signwriter-cache" and it works fine. For "Font Search Path", I have tried all kinds of paths (and placed a copy of the ttf font in each place).

For example, I tried leaving it blank except for the font name (impact.ttf) and placing the font in a) the Drupal directory, b) the root of my files directory, and c) my current theme's directory. The instructions state that these paths are checked automatically, so I shouldn't need to specify anything other than the font name, right? None of these options worked. I tried having a copy of the font in all three places at once as well as one at a time. No luck.

Then I tried to place the font in some other directory and specify a path relative to Drupal root. I tried without a leading '/', as well as including a '/'. I tried with and without the ttf extension on the filename. I don't need to use a complete system path do I? It wouldn't translate well between windows and Linux. I would assume that the module handles that, no?

In the cache directory instructions, you explicitly specify a working example and I am using one of them. That's what I meant above in my previous post regarding having a complete example.

Any help would be appreciated.

wrunt’s picture

Title: Is this project abandoned? Fontpath needs more documentation. » Font not being found

Hi rconstantine,

What you've done should work, but the most failsafe way of finding a font is probably to specify the full system path. If you have php safe mode set then that could cause problems, but a full path to the .ttf (including the extension) should work.

If you send me the .ttf file you're trying to use I'll see whether it works on my system. It could be that the php freetype library is unable to use that particular file.

You should also make sure that your php installation has both the GD and Freetype libraries. Check the gd section in your phpinfo().

rconstantine’s picture

StatusFileSize
new132.89 KB

Checked GD and I seem to have everything okay. I'm attaching the font (renaming the extension).

wrunt’s picture

I just tried with your font and it seems to work fine for me. I committed some changes to cvs this morning which may help. There should be a 5.x development snapshot appearing soon that you could try.

I've also just discovered what is probably a bug, and may be affecting you. If you put in more than one directory in your custom fontpath, separated by a :, neither path is searched. Just put the one directory in there for now if you're using it. I'll check out what's causing this bug later.

rconstantine’s picture

Rats. I was only ever using one path so I doubt your bugfix will help my situation.

Um, I thought I bookmarked a little tutorial on replacing a site's name/header (as defined in site settings(?) and turned on/off in the theme) but can't seem to find it now. Do you know the one I'm talking about? It has you modify page.tpl.php or something like that. If you know of it, is it still valid? I think that was the only thing I had been trying to get working last time I tried, so I wonder now if there was something wrong with it.

I think I also tried a generic header replacement script as found in the README with no luck either. Anyway, I'll try things again in the next few days and post a screen shot of what my problems look like.

wrunt’s picture

If you're using the garland theme then change line 42 of page.tpl.php from
print $site_html . '</a></h1>';
to
print signwriter_title_convert($site_html, signwriter_load_profile('Example Profile')) .'</a></h1>';
That should change the main page title to use a signwriter profile called 'Example Profile'.

enxox’s picture

see

enxox’s picture

seem that a font is not found if it's name is written with UPPERCASE

ceejayoz’s picture

The name doesn't matter, but the extension does. UPPERCASE.TTF will not be found, but UPPERCASE.ttf will.

nterbogt’s picture

Status: Active » Fixed

This is purely a GD issue, because it's responsible for searching the font paths.
I'll add some documentation (in the way of a field description on the settings page) about what to put in the font path field, in the hope that this might help some users.

This is the same with bug #88465: .otf file extension support and foreign characters

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.