> Is there something special I need to do to get Mapnik to look in other
> fonts in the fonts directory for missing characters? I've had a bit of
> a look around the Mapnik wiki and mailing list archives for answers
> but no dice.
Here is the example I used when I wrote the code for fallback fonts; I
understand it has gone through some modification since then (to make
it actually usable) so I'm unsure if any of the arguments changed:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<FontSet name="my-fonts">
<Font face_name="DejaVu Sans Book" />
<Font face_name="TSC FMing S TT Regular" />
</FontSet>
<Style name="font-test">
<Rule>
<TextSymbolizer name="NAME" fontset_name="my-fonts" size="15" fill="black" />
</Rule>
</Style>
<Layer name="font-test" status="on" srs="+proj=longlat +ellps=WGS84
+datum=WGS84 +no_defs">
<StyleName>font-test</StyleName>
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">Font_Test</Parameter>
</Datasource>
</Layer>
</Map>
The important part is defining a FontSet (in the order you want
fallback to occur) and using that FontSet via the fontset_name
attribute.
If that works let me know and I'll attempt to document it on the wiki. :)
Thanks (and thanks Dane for letting me know someone had a question!),
Beau
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users