Subject: Re[2]: gd, locales, special characters
To: pkgsrc-users@NetBSD.org <pkgsrc-users@netbsd.org>
From: reinhold roppert <rm@rmroppert.de>
List: pkgsrc-users
Date: 06/27/2007 23:55:02
Hello,

Am Mittwoch, 27. Juni 2007 um 20:28 schrieben Sie:

> 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.

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.
http://heisenberg.rmroppert.com/test/gd_test.php

###
...
setlocale(LC_CTYPE,'de_DE.ISO8859-1');
DEFINE("TTF_TEXT","mit leerzeichen: =E4 =FC =F6 xx =C4 =DC =D6 =DF ohne lee=
rzeichen =E4=FC=F6xx=C4=DC=D6");
$im =3D imagecreate (1810, 100);
...
imagettftext ($im, 30, 0, 10, 40, $black, TTF_DIR.TTF_FONTFILE,TTF_TEXT);

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



--=20
RM.ROPPERT, it management agentur
Reinhold Roppert=20
Muehlstrasse 6 89077 Ulm
tel: +49.7319386495 fax: +49.7319386496