pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re[2]: gd, locales, special characters



Hello

am Mittwoch, 27. Juni 2007 um 20:28 Matthias schrieb:

> Can you double-check the gd version? There is a note in the changelog:

> Version 2.0.32 restores correct detection of Unicode character sets
> for freetype fonts, which repairs a bug that prevented umlauts from
> displaying properly.

> For me, umlauts in gnuplot/png/arial.ttf display fine (with
> current pkgsrc, gd is at 2.0.35).

The gd Version is 2.0.34.

I found out, if i seperate the characters with blanks, the picture
with text renders. Without blanks its the old problem.
look at: http://heisenberg.rmroppert.com/test/gd_test.php

###
....
setlocale(LC_CTYPE,'de_DE.ISO8859-1');
DEFINE("TTF_TEXT","mit leerzeichen: ä ü ö xx Ä Ü Ö ß ohne leerzeichen 
äüöxxÄÜÖ");
$im = imagecreate (1810, 100);
....
imagettftext ($im, 30, 0, 10, 40, $black, TTF_DIR.TTF_FONTFILE,TTF_TEXT);

header ("Content-type: image/png");
imagepng ($im);
....
#####



Best regards
Reinhold

I wrote this mail twice to the list, because it is not displayed the
first time.

-- 
R.M.Roppert




Home | Main Index | Thread Index | Old Index