views:

239

answers:

0

Hi

We have a very weird problem concerning the use of a TTF-font with a specific name(!) in PHP5 running in Apache:

...
$ttf = "./XFILES.TTF"; //Schriftart  
ImageTTFText($img, $ttfsize, $angle, $t_x, $t_y, $color, $ttf, $text);

The font file doesn't work anymore when it is named XFILES.TTF - no errors are displayed, the text just isn't rendered.

We tried this with the original script and several examples scripts on numerous machines, the results are always the same: On some installations all works fine regardless of the name, on others it doesn't work when the font-file's name is xfiles.ttf. We can use any ttf-font file, it really is the name that seems to be the culprit.)

Renaming the file to e.g. XFILES1.TTF in the file system and the script solves the problem. As a matter of fact, the file can be named anything but xfiles.ttf (Upper or lowercase, as long as names in file system and script match, of course).

Our software is distributed for Windows and comes bundled with a local Apache configured to run PHP 5. This used to work fine for almost two years and we haven't changed a thing.

But now, we see installations that suddenly can't use the TTF-font file anymore when it is named xfiles.ttf - this happens both in XP (SP3) and Vista installations:

On some computers it doesn't work from the beginning. On others - like mine - it just stopped working last weekend.

Again: Neither the apache config nor the script was altered in any way. It just seems that the file name xfiles.ttf sort of became illegal on some machines for no obvious reason.

Maybe this is an issue caused by a Windows update - we don't know. Has anybody experienced similar problems?

Any help is very much appreciated. Cheers
-sascha :-)