[OSM-talk] Mapnik rendering in China broken?

Beau Gunderson beau at beaugunderson.com
Mon May 26 18:47:03 BST 2008


I will take a look at adding fallback font support to Mapnik.

Around include/mapnik/font_engine_freetype.hpp:359 it seems like there is a
good opportunity to add this support.


Beau

On Mon, May 26, 2008 at 6:22 AM, Jon Burgess <jburgess777 at googlemail.com>
wrote:

> On Mon, 2008-05-26 at 13:55 +0200, Inge Wallin wrote:
> > Hi,
> >
> > I'm not sure if this is the correct list to post to, but it's the only
> OSM
> > list that I'm a member of so I'll do it here anyway.
> >
> > It seems that the rendering of chinese characters in Mapnik is broken.
> Every
> > character is just rendered as an empty square, which indicates to me that
> > some font is missing on the rendering server.  Here is an example:
> > http://www.openstreetmap.org/?lat=26.53&lon=118.33&zoom=7&layers=B0FT
>
> The fundamental issue is that Mapnik can only render a given piece of
> text with a single font. It has no ability to fallback to another font
> if one of the characters is missing. Currently we use the DejaVu fonts
> which are missing these Chinese characters.
>
>        Jon
>
>
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080526/532977a3/attachment.html>


More information about the talk mailing list