Torsten,

Great, glad that works!

Be aware that text in India may not be correct however: 
http://trac.mapnik.org/ticket/112

Dane

On Apr 23, 2009, at 11:32 PM, Torsten Mohr wrote:

> Hello,
>
> thank you very much, it all works as expected now.  China and India  
> cities
> have names !!!  Hooray!!!
>
>
> Best regards,
> Torsten.
>
>
> Am Donnerstag, 23. April 2009 08:25:55 schrieb Dane Springmeyer:
>> On Apr 22, 2009, at 10:48 PM, Torsten Mohr wrote:
>>> Hello,
>>>
>>> i work on Linux, my system is based on OpenSuse 11.1-64.
>>>
>>> When i try to render certain parts of the world, some characters
>>> can't be
>>> resolved, so i try Mapniks fallback behaviour (found in the  
>>> archives).
>>
>> See also:
>>
>> http://highearthorbit.com/cjk-fonts-in-openstreetmap-tiles/
>>
>> and
>>
>> http://trac.mapnik.org/wiki/FontSet
>>
>>> I don't know what font name to supply as fallback.
>>>
>>> In the osm.xml i use the font face_name="DejaVu Sans Book" and
>>> rendering works fine.
>>>
>>> But i can't find that font when i try to use it in an OpenOffice
>>> Document
>>> or when i use a font viewer.
>>
>> Right, because the Python bindings (for convenience) by default only
>>
>> register the bundled DejaVu fonts installed in:
>>>>> from mapnik.paths import fontscollectionpath as f
>>>>> f
>>
>> '/usr/local/lib/mapnik/fonts'
>>
>>> On the other hand, when i install a font in /usr/share/fonts/
>>> truetype i
>>> can use it in OpenOffice and see it in font viewers but can't use it
>>> in
>>> Mapnik.
>>
>> You can easily use it, you just have to register the font.
>>
>>>>> import mapnik
>>>>> engine = mapnik.FontEngine.instance()
>>>>> engine.register_font('/path/to/font.ttf')
>>>
>>> Can somebody tell me where are fonts installed on Linux that Mapnik
>>> uses?
>>
>> See above.
>>
>>> How can i find out the name to use in osm.xml?
>>
>> from mapnik import *
>> for name in FontEngine.instance().face_names():
>>     print name
>>
>>> Can somebody suggest a good (or several) so that China and India
>>> (and also the rest of the world) gets rendered fine?
>>
>> http://unifoundry.com/unifont.html
>>
>>> Thanks for any hints,
>>> Torsten.
>>>
>>>
>>> _______________________________________________
>>> Mapnik-users mailing list
>>> [email protected]
>>> https://lists.berlios.de/mailman/listinfo/mapnik-users
>
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to