[mapserver-dev] Rendering raster fonts with AGG may cause crash in mapserver

thomas bonfort thomas.bonfort at gmail.com
Fri Aug 15 03:31:15 EDT 2008


Hi,

On Thu, Aug 14, 2008 at 10:29 PM, Tamas Szekeres <szekerest at gmail.com> wrote:
> Hi All,
>
> I've noticed that rendering raster fonts when the character code falls
> outside of the 23-127 domain may cause crash in mapserver. I've
> attached a possible fix with a new ticket see:
> http://trac.osgeo.org/mapserver/ticket/2739
>
> Should I apply the fix?
I'd prefer to keep the agg specific code inside the
AGGMapserverRenderer object, in the renderRasterGlyphs member
function, what do you think?

>
> Anyway, I'm a bit disappointed that AGG cannot render localized raster
> fonts with above of 127 character codes at all.
yes and no:
* the code shouldn't be segfaulting
* raster fonts are kind of a hack, and characters above 127 depend on
the encoding, so even if the >127 chars were supported, there'd be
only a slim chance that they corresponded to the encoding you where
looking for

cheers,
thomas


More information about the mapserver-dev mailing list