mapnik / mapnik-support

Use the issues queue here to ask questions and offer help on using Mapnik (maybe if this works well we can retire the mailing list at http://mapnik.org/contact/?)
6 stars 6 forks source link

"Error Failed to find font face" #136

Open HughPH opened 4 years ago

HughPH commented 4 years ago

What I have done:

Install Ubuntu 19.10 Follow OSM instructions for getting an OSM database Follow OSM instructions for compiling Mapnik from source Follow OSM instructions for making some tiles

Where I got stuck: mapnik-render --xml osm.xml --img /mnt/storage/img/test.png

Fails with: 'Error Failed to find font face 'Noto Sans Regular' in FontSet 'fontset-0' in FontSet of 'osm.xml'`

What I have done: Delete all the fonts in fontset-0 and add 'DejaVu Sans' which I know is definitely installed and available. Didn't help.

  <FontSet name="fontset-0">
    <Font face-name="DejaVu Sans" />
  </FontSet>
HughPH commented 4 years ago

Eventually worked out that loads of stuff works brilliantly if one invokes mapnik-render while ones current working directory is the cloned git repo.

Could be better documented.