[mapserver-users] Annotation label with styleitem auto uses bitmap font

Jelmer Baas baas at speerit.nl
Thu Nov 6 04:40:51 PST 2014


Update on this issue:

MapInfo didn't have a font specified for the TEXT objects. This meant that MapServer somehow didn't use the fallback font ("default"), but switched to its built-in font. I've now manually changed all fonts to Arial, added a valid "default" font in my fontset, and it works! (And it looks beautiful :)

For short-term,  I'll make sure our conversion software adds a valid font, but I would like it if someone can investigate this further (MID/MIF or TAB file available on request), since it's odd behavious imho.

Thanks,

Jelmer

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jelmer Baas
Sent: woensdag 5 november 2014 21:39
To: humberto at pastoraldacrianca.org.br; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Annotation label with styleitem auto uses bitmap font

Hi Humberto,

Thanks for the quick reply. 

I have not tried any encoding setting, because it's obviously using the bitmap font. Or would that force MapServer to use a TTF font? I'm also not sure where to add the "FONT" property. On the class? Or Layer? I tried both, had no effect.

I believe I may have a bigger problem, maybe MapServer is falling back to the built-in font because it can't open the TTF files, but I have no idea how to test that (or confirm or deny my suspicions, because I can't find any debugging / logging info).

Regards,
Jelmer

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Humberto Cereser Ibanez
Sent: woensdag 5 november 2014 17:49
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Annotation label with styleitem auto uses bitmap font

Hi Jelmer,

On Wed, 2014-11-05 at 15:30 +0000, Jelmer Baas wrote:
> - Setting class.label properties; this has been removed in 6.2

Did you try set LABEL properties: 
FONT to TRUETYPE and 
ENCODING to "UTF8" or something like that?

Regards,

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list