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

Mapnik: Failed to find font face ‘unifont Medium’ in FontSet ‘book-fonts’

0

Hello,

I get the following error when I try to render tiles using Mapnik with standard style.

RuntimeError: Failed to find font face 'unifont Medium' in FontSet 'book-fonts' in FontSet at line 5 of '/home/mapnik/osm.xml'

I use fedora 22 and I have installed "unifont" package, I tested it using the following command:

[root@...]$ ls python -c "import mapnik;print mapnik.fontscollectionpath" default dejavu unifont

any help appreciated!

asked 03 Dec '15, 10:17

khamooshi's gravatar image

khamooshi
146111219
accept rate: 50%


One Answer:

2

Found it!
In inc/fontset-settings.xml.inc.template replace "unifont Medium" with "Unifont Medium"

answered 03 Dec '15, 10:47

khamooshi's gravatar image

khamooshi
146111219
accept rate: 50%

1

You appear to be using some very old stylesheets, that's not the "Standard" style any more. The current stylesheet is found at https://github.com/gravitystorm/openstreetmap-carto

(03 Dec '15, 11:36) Andy Allan

Source code available on GitHub .