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

Hi

I've created my own OSM server, using the great instructions I found here: here. I have a few issues, among them that many place names show as boxes instead of Arabic or Chinese. This seems to be the case only for some non-ascii names. In this image you can see that Algeria is fine but Eritea and Ethiopia are not.

this image

I imported the planet database and am using renderd/mapnik.

Thanks, Harold Ship

asked 30 Jul '14, 17:12

haroldship's gravatar image

haroldship
90338
accept rate: 0%

edited 30 Jul '14, 17:50

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

I cannot give you a concrete hint to solve your problem, butt maybe see the OSM wiki about http://wiki.openstreetmap.org/wiki/Map_internationalization to see different possibilities.

(30 Jul '14, 20:34) stephan75

This is a font issue. Check your Mapnik style file and make sure it mentions the "Unifont" font in addition to DejaVu Sans, and make sure that the ttf-unifont package is installed. (Newer versions of the style might reference a larger number of fonts for an even better result than just Unifont but Unifont already goes a long way to get rid of these boxes.)

permanent link

answered 30 Jul '14, 21:00

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

3

Thank you Frederik!

You are right. I did the following and the problem has disappeared:

apt-get install ttf-unifont
edit /etc/mapnik-osm-data/inc/fontset-settings.xml.inc
restart renderd
render_list ...

This solves the problem with the square characters!

Now, is there a known list of good fonts? Unifont works but is not pretty...

(31 Jul '14, 07:41) haroldship

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:

×341
×39
×33
×23
×4

question asked: 30 Jul '14, 17:12

question was seen: 4,751 times

last updated: 31 Jul '14, 11:36

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