Weird characters on produced tiles
Closed this issue · 3 comments
Hi Guys,
Sorry for this I am new to this module and I am trying to understand what's happening.
So we are getting some tiles produced for Asia countries that we get 'Squared characters'.
I am guessing that this has to do with fonts missing there but not sure how this can be fixed.
for example:
Any ideas, suggestions welcomed
It is definitely a font problem, but I don't think it's entirely related to mod_tile
or renderd
. The latter just takes your Mapnik XML file and renders accordingly. That Mapnik XML file describes the fonts it needs. You have to make sure all of the listed fonts are installed on your rendering machine, or at least the ones related to the languages in the regions you're rendering.
Looking at your screenshot and comparing with OSM's default rendering, I have the impression you're using that one. Are you also using nothing more that OSM data? Because I can't see a third name for Sri Lanka. For your first screenshot, could you provide a link where on the world is that?
You'll need to install the missing fonts on the machine used to create the tiles. https://switch2osm.org/serving-tiles/manually-building-a-tile-server-20-04-lts/ has a list of the likely required ones. It suggests:
sudo apt install fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted ttf-unifont