Posted by dfletcher on October 10, 2006 at 4:54pm
Jump to:
| Project: | Signwriter |
| Version: | 6.x-2.0-beta2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
First let me just say thanks for a great module!
Signwriter (well TrueType) supports .otf fonts just fine but because of the way Signwriter looks for fonts, the path must be a full hard coded path. This would be fine but I have several profiles and am in the process of moving my server and I have to change each one when I move.
It would be nice if signwriter could just look for .otf in addition to .ttf and then I could just specify the base name and put the path in the global configuration.
Comments
#1
Hi dfletcher,
I've had a look at this, but Signwriter uses php's GD image library to draw the fonts, and GD is the one that automatically looks for extensions of .ttf. It would be possible to add a function which searches through your GDFONTPATH and looks for files ending in .otf as well, but that seems like a bit of a hack.
Maybe you could just rename your .otf files to .ttf?
Alex
#2
This issue has been inactive for some time and is not actually a bug.
Closing this ticket.
#3
Renaming an .otf file to .ttf worked for me.
-Steve
#4
Hi,
I changed the .otf extension to .tff, but foreign characters are not rendering properly. Do you think there is a workaround, or is this a limitation of the system?
I also updated the issue title to reflect the problem with foreign characters.
Albert.
#5
...reopening the issue and setting to 6.x-2.0. Thanks.
#6
updating to latest stable release of the module.
otf files when renamed as ttf do not support accents and other special characters.
#7
I can confirm the issue posted above. I also tried providing the full system path to my font a few ways and was unable to get it to show up:
/home/ryan/www/testsite/sites/example.com/themes/mycooltheme/fonts/gotham-bold.otf
/home/ryan/www/testsite/sites/example.com/themes/mycooltheme/fonts/
/home/ryan/www/testsite/sites/example.com/themes/mycooltheme/fonts
/sites/example.com/themes/mycooltheme/fonts/gotham-bold.otf
/sites/example.com/themes/mycooltheme/fonts/
/sites/example.com/themes/mycooltheme/fonts
sites/example.com/themes/mycooltheme/fonts/gotham-bold.otf
sites/example.com/themes/mycooltheme/fonts/
sites/example.com/themes/mycooltheme/fonts
#8
You can always convert your otf fonts to ttf with fontforge (http://fontforge.sourceforge.net) or some other font utility program. I think this will take care of the problem with special characters.