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

wrunt’s picture

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

nterbogt’s picture

Status: Active » Closed (fixed)

This issue has been inactive for some time and is not actually a bug.
Closing this ticket.

steveoliver’s picture

Renaming an .otf file to .ttf worked for me.

-Steve

alberto56’s picture

Title: .otf file extension support » .otf file extension support and foreign characters

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.

alberto56’s picture

Version: 4.7.x-1.x-dev » 6.x-2.0-beta1
Status: Closed (fixed) » Active

...reopening the issue and setting to 6.x-2.0. Thanks.

vthirteen’s picture

Version: 6.x-2.0-beta1 » 6.x-2.0-beta2

updating to latest stable release of the module.
otf files when renamed as ttf do not support accents and other special characters.

devkinetic’s picture

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

reswild’s picture

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.