This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Tirex / Mapnik does not find font

0

I am getting the following Tirex error:

tirex-backend-mapnik[15024]: no valid fonts could be loaded in FontSet 'fontset-0' in FontSet at line 17 of '/etc/mapnik-osm-carto-data/osm.xml'

The first font in osm.xml is DejaVu Sans Book which is installed:

# python -c "from mapnik import FontEngine as e;print '\n'.join(e.instance().face_names())" | grep "DejaVu Sans Book"

Output:
DejaVu Sans Book

When rendering via generate_image.py it works.

asked 23 Jun '14, 11:57

Alex_AddisMap's gravatar image

Alex_AddisMap
1897815
accept rate: 0%

edited 23 Jun '14, 12:20


One Answer:

1

Set

fontdir=/usr/share/fonts/
fontdir_recurse=1

in /etc/tirex/renderer/mapnik.conf

answered 23 Jun '14, 12:28

Alex_AddisMap's gravatar image

Alex_AddisMap
1897815
accept rate: 0%

Source code available on GitHub .