Details Ticket 5072


Comment | Reply | Take | Open


Serial Number 5072
Subject d.text.freetype does not print accented characters
Area grass6
Queue grass
Requestors mlennert@club.worldonline.be
Owner none
Status resolved
Last User Contact Thu Aug 31 16:09:50 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Thu Aug 31 16:09:50 2006 (2 yr ago)
Created Wed Aug 30 12:13:51 2006 (2 yr ago)

Transaction History Ticket 5072


Wed, Aug 30 2006 12:13:51    Request created by guest  
Subject: d.text.freetype does not print accented characters

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: cvs_head_20060829

Using accented characters in d.text.freetype fails for me.
From the first accented character onward, nothing is displayed, i.e

d.text.freetype -n text="Densité de la population" east_north=2,95 size=3 col=black
path=/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf

displays

Densit 

This is on Debian testing, with libfreetype6 2.2.1

Moritz
Wed, Aug 30 2006 18:17:26    Mail sent by glynn@gclements.plus.com  
Return-Path <glynn@gclements.plus.com>
Delivered-To grass-bugs@lists.intevation.de
From Glynn Clements <glynn@gclements.plus.com>
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Transfer-Encoding quoted-printable
Message-ID <17653.47633.167467.999052@cerise.gclements.plus.com>
Date Wed, 30 Aug 2006 17:17:21 +0100
To Request Tracker <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5072] (grass) d.text.freetype does not print accented characters
In-Reply-To <20060830101351.D8E611005D6@lists.intevation.de>
References <20060830101351.D8E611005D6@lists.intevation.de>
X-Mailer VM 7.07 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=3D5072
> ---------------------------------------------------------------------=
----
>=20
> Subject: d.text.freetype does not print accented characters
>=20
> Platform: GNU/Linux/x86
> grass obtained from: CVS
> grass binary for platform: Compiled from Sources
> GRASS Version: cvs_head_20060829
>=20
> Using accented characters in d.text.freetype fails for me.
> >From the first accented character onward, nothing is displayed, i.e
>=20
> d.text.freetype -n text=3D"Densit=C3=A9 de la population" east_north=3D=
2,95 size=3D3 col=3Dblack path=3D/usr/share/fonts/truetype/ttf-bitstrea=
m-vera/Vera.ttf
>=20
> displays
>=20
> Densit=20
>=20
> This is on Debian testing, with libfreetype6 2.2.1

There is a bug in the built-in ISO-8859-1 -> UCS-4 decoder, which is
only used if iconv() isn't detected.

--- display/d.text.freetype/main.c=0930 Aug 2006 02:00:46 -0000=092.11
+++ display/d.text.freetype/main.c=0930 Aug 2006 16:14:49 -0000
@@ -799,10 +799,10 @@
 =09p2 =3D *out;
 =09for(i =3D 0; i <=3D l; i++)
 =09{
-=09=09p2[2*i+0] =3D 0;
-=09=09p2[2*i+1] =3D 0;
-=09=09p2[2*i+2] =3D 0;
-=09=09p2[2*i+3] =3D text[i];
+=09=09p2[4*i+0] =3D 0;
+=09=09p2[4*i+1] =3D 0;
+=09=09p2[4*i+2] =3D 0;
+=09=09p2[4*i+3] =3D text[i];
 =09}
 =09ol =3D l * 4;
 #endif

Note that d.text.freetype requires iconv in order to use encodings
other than ISO-8859-1.

If your version of d.text.freetype was built to use iconv, then I
don't know what the problem is.

--=20
Glynn Clements <glynn@gclements.plus.com>


Thu, Aug 31 2006 09:39:40    Mail sent by mlennert@club.worldonline.be  
Return-Path <mlennert@club.worldonline.be>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <44F6924F.9070106@club.worldonline.be>
Date Thu, 31 Aug 2006 09:39:59 +0200
From Moritz Lennert <mlennert@club.worldonline.be>
User-Agent Thunderbird 1.5.0.5 (X11/20060812)
MIME-Version 1.0
To Glynn Clements via RT <grass-bugs@intevation.de>
Cc tutey@o2.pl
Subject Re: [bug #5072] (grass) d.text.freetype does not print
References <20060830161726.E3BAD1006C7@lists.intevation.de>
In-Reply-To <20060830161726.E3BAD1006C7@lists.intevation.de>
Content-Type text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
Glynn Clements via RT wrote:
> Request Tracker wrote:
> 
>> this bug's URL: http://intevation.de/rt/webrt?serial_num=3D5072
>> ---------------------------------------------------------------------=
> ----
>> =20
>> Subject: d.text.freetype does not print accented characters
>> =20
>> Platform: GNU/Linux/x86
>> grass obtained from: CVS
>> grass binary for platform: Compiled from Sources
>> GRASS Version: cvs_head_20060829
>> =20
>> Using accented characters in d.text.freetype fails for me.
>> >From the first accented character onward, nothing is displayed, i.e
>> =20
>> d.text.freetype -n text=3D"Densit=C3=A9 de la population" east_north=3D=
> 2,95 size=3D3 col=3Dblack path=3D/usr/share/fonts/truetype/ttf-bitstrea=
> m-vera/Vera.ttf
>> =20
>> displays
>> =20
>> Densit=20
>> =20
>> This is on Debian testing, with libfreetype6 2.2.1
> 
> There is a bug in the built-in ISO-8859-1 -> UCS-4 decoder, which is
> only used if iconv() isn't detected.
> 
> --- display/d.text.freetype/main.c=0930 Aug 2006 02:00:46 -0000=092.11
> +++ display/d.text.freetype/main.c=0930 Aug 2006 16:14:49 -0000
> @@ -799,10 +799,10 @@
>  =09p2 =3D *out;
>  =09for(i =3D 0; i <=3D l; i++)
>  =09{
> -=09=09p2[2*i+0] =3D 0;
> -=09=09p2[2*i+1] =3D 0;
> -=09=09p2[2*i+2] =3D 0;
> -=09=09p2[2*i+3] =3D text[i];
> +=09=09p2[4*i+0] =3D 0;
> +=09=09p2[4*i+1] =3D 0;
> +=09=09p2[4*i+2] =3D 0;
> +=09=09p2[4*i+3] =3D text[i];
>  =09}
>  =09ol =3D l * 4;
>  #endif
> 
> Note that d.text.freetype requires iconv in order to use encodings
> other than ISO-8859-1.
> 
> If your version of d.text.freetype was built to use iconv, then I
> don't know what the problem is.


There is no problem: I just notived that I didn't set the charset option...

Sorry for the noise.

Bug can be closed.

Moritz


Thu, Aug 31 2006 16:09:50    Status changed to resolved by msieczka  
Thu, Aug 31 2006 16:09:50    Mail sent by msieczka  
Closing bug at Moritz's request.

Maciek
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request