NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

User error of dimensions!

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

permanent link

answered 18 Jul '14, 17:11

JoMs's gravatar image

JoMs
56115
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×341
×105
×36
×15

question asked: 18 Jul '14, 11:37

question was seen: 5,072 times

last updated: 18 Jul '14, 17:11

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum