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

Error on rendering: what(): Unable to find specified font face ‘’

0

Hi!

I've been converting a Mapnik XML export which I created with TileMill on my desktop. I have now implemented it into renderd/mapnik, but when rendering some parts of the map it triggers the error below.

what():  Unable to find specified font face ''

I assume this is as a result of a part of the map requiring some font which fails.

Does anyone have a tip to hw I should address finding what causes this error? I've tried searching through the config for font-faces which could contain an error, but I haven't found anything.

EDIT: It seems like when removing all font-face references it works. Is there a wrong way to reference fonts?

EDIT2: http://pastebin.com/8VzRTbRz This would be a relevant example of using fonts in Mapnik XML and Carto.

asked 18 Jul '14, 11:37

JoMs's gravatar image

JoMs
56115
accept rate: 0%

edited 18 Jul '14, 16:32

1

You'll need to provide either the relevant part of the CartoCSS or the relevant part of the mapnik XML file for anyone to be able to figure out what's going on.

(18 Jul '14, 16:21) Andy Allan
1

http://pastebin.com/8VzRTbRz This would be a relevant example of using fonts.

(18 Jul '14, 16:27) JoMs
1

You haven't provided either the definition for @sans_italic nor the <fontset> sections of the xml!

(18 Jul '14, 16:41) Andy Allan
1

Sorry about that. Here's the definition for the fonts http://pastebin.com/0Xr1BRgU

(18 Jul '14, 16:44) JoMs

One Answer:

3

User error of dimensions!

The problem was that the fonts called Italic in the XML should be Oblique.

answered 18 Jul '14, 17:11

JoMs's gravatar image

JoMs
56115
accept rate: 0%

Source code available on GitHub .