Thank you for your answer, this is what I tried next:
<?php
header("Content-type: image/png");
$im = @ImageCreate (180, 100);
$background_color = ImageColorAllocate ($im, 0, 0, 255);
$text_color = ImageColorAllocate ($im, 255, 255, 255);
for ($i=0;$i<256;$i+=2) {
$dummy = ImageColorAllocate ($im, $i, $i, 255);
}
$font="fonts/TIMR____.TTF";
ImageTTFText($im, 60, 0, 15, 70, $text_color, $font, "white?");
ImagePng ($im);
?>
Result shows no change to previous example.
In fact, there is a nice gradient between the lightblue text and the blue
background, but no white letters🙁.
I use the debian packages. Phpinfo(); lists:
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library for FreeType Support
Same result using Windows9x-gd.dll with TTF.
d