giggls / openstreetmap-carto-de

OpenStreetMap german style (a fork of openstreetmap-carto)
Other
52 stars 19 forks source link

Issues with missing fonts #53

Closed Fauch922 closed 4 years ago

Fauch922 commented 4 years ago

Some parts of my map are showing squares instead of the original names, e.g.:

Pakistan, Cambodia, some countries in North Africa. I'm assuming this is due to missing fonts. I cannot figure out which fonts are missing. I have installed the following fonts:

I'm using openstreetmap-carto-de and the i10n plugin.

I have installed (most) of these fonts using

sudo apt-get install fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-hanazono ttf-unifont

my renderd.conf includes the following lines:

[mapnik]
plugins_dir=/usr/lib/mapnik/3.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=true

Expected behavior

I'm expecting all names in their original language to be rendered correctly.

Actual behavior

The names aren't rendered correctly. Renderd shows no errors at all. Some names are rendered correctly at a certain layer, then the wrong way again at a different layer.

Links and screenshots illustrating the problem

Cambodia example

giggls commented 4 years ago

There is no difference between fonts needed by upstream and German Style Fork.

As I do not use renderd (which is mostly unmaintained) I can not help here.

Try rendering using nik2img.

These are the packages I have on German Tileservers (Debian 10):

fonts-dejavu-core fonts-dejavu-extra fonts-hanazono fonts-lyx fonts-noto-color-emoji fonts-noto-core fonts-noto-mono fonts-noto-ui-core fonts-noto-unhinted ttf-bitstream-vera ttf-unifont

There is also a script called render_single_tile.py in the scripts directory of this repository which is handy for debugging stuff like this. `

Fauch922 commented 4 years ago

Thank you for your swift answer.

render_single_tile.py did indeed help resolve the issue. There were several missing fonts that were not covered neither by the packages you listed nor by the packages I had installed already.

These fonts were:

Removing these fonts from the stylesheet (osm-de.xml) resolved the issue. Thank you for your help.

giggls commented 4 years ago

Well at least on Debian "Noto Sans Balinese Regular" and "Noto Sans Syriac Eastern Regular" are part of the fonts-noto-core package.

You can ignore the warnings regarding "unifont Medium".

As you write this I remember adding the Emoji fonts manually as well.

This said I will close this now because this has never been an issue of this style anyway.