[GRASS-dev] Re: [bug #4905] (grass) gis.m: d.text.freetype does not allow spaces in text

Moritz Lennert mlennert at club.worldonline.be
Wed Aug 30 06:08:06 EDT 2006


Hamish wrote:
> William Kyngesburye wrote:
> 
>> Do you know what fonts you were trying to use that didn't work?  Most 
>> of the common fonts that come with OSX are dfonts (Apple's fonts) and 
>>
>> suitcase TT fonts (the M$ fonts).  There are a few unix-style .ttf  
>> fonts in the system (but those tend to be other language script  
>> fonts), and some OTF Japanese fonts.
>>
>> X11 vs Aqua shouldn't affect freetype itself.  Though if you use  
>> Apple's X11-bundled freetype, I found that suitcase font support is  
>> disabled there, and only dfonts and unix-style fonts work.
> 
> 
> Hi,
> 
> just testing d.text.freetype on GRASS 6.3 (including just-now fix from
> Glynn for main.c) I'm still getting a crash (SIGFPE) if the text=""
> contains a space. The debugger traces it to this call in main.c (line
> 1040).
> 
>         if(FT_Render_Glyph(face->glyph, ft_render_mode_mono))
> 	{
> 
> i.e. it breaks within FT_Render_Glyph() if ch=32; it doesn't make it as
> far as Glynn's new code (the next line).
> 
> in the terminal:
> Floating point exception
> Monitor <x0>: Premature EOF

I cannot confirm this error on Debian testing with libfreetype6
2.2.1-2. For me Glynn's fix works.

I do however have (unrelated) problems with accented characters. From
the first accented character onward, nothing is displayed, i.e

Densité de la population

becomes

Densit

I'll file a report on that.

Moritz




More information about the grass-dev mailing list