Page 1 of 1

imagettftext with non ASCII-characters

Posted: Thu Jan 08, 2009 3:33 am
by HerrSerker
Hello,

I searched the net and this forum, but didn't get an answer to my question, which is as follws.

I'm using the GD library with freetype to generate some text on an image. This is easy.
But as it comes to some non ASCII-characters like german umlauts the script fails on one server/font combination and successes at a different combination.

The facts:
Dev Server: WIN / PHP 5.2.6 / GD bundled (2.0.34 compatible) / Freetype 2.1.9 / Font Myriad Pro (OTF): won't work
Dev Server: WIN / PHP 5.2.6 / GD bundled (2.0.34 compatible) / Freetype 2.1.9 / Font Garamond (TTF): works

Some Other Server: Linux / PHP 4.3.10 / GD 2.0 or higher / Freetype Version don't know / Font Myriad Pro (OTF) : won't work

Production Server: Linux / PHP 5.2.5 / GD bundled (2.0.34 compatible) / Freetyp 2.3.5 / Font Myriad (OTF): won't work

So the problem is, I don't know, where the problem is.
Is it the PHP-Version?
Is it the GD version?
Is it the Freetype version?
Or is it the font?
Or else, is there a chance that I can repair the font with some font creator tool?

Has anyone encountered the same problem? (I know, there are many who have problems with non ASCII-characters and I tried the different work arounds my problem is, I cannot know exactely where the problem is