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

how to use zh-hant via manually building a tile server?

0

map didn't show zh-hant, how do i fix? thanks a lot. alt text

asked 17 Jul '22, 17:58

weiyilai's gravatar image

weiyilai
16223
accept rate: 0%

tile it's not found. https://imgur.com/zfduAxU

(19 Jul '22, 18:11) weiyilai

2 Answers:

1

At the time of writing (to be fixed shortly) the "fonts" suggested by the switch2osm guide here are wrong - they are missing some fallback fonts needed for Taiwan.

The Carto instructions are nearly correct - the missing ones are "fonts-hanazono", although "ttf-unifont" has been replaced by "fonts-unifont".

If you do this:

sudo apt install fonts-hanazono

it should at least not display "little square boxes".

answered 19 Jul '22, 17:40

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

installed fonts-hanazano and it still doesn't work Am I missing something?

Thanks a lot

(19 Jul '22, 17:57) weiyilai
1

Works for me.

You will need to restart renderd and apache2 after installing new fonts - I also cleared down all old tile directories "/var/cache/renderd/tiles/s2o/?" and "/var/cache/renderd/tiles/s2o/??" to make sure that I was looking at new tiles.

(19 Jul '22, 18:03) SomeoneElse ♦

I don't understand why I execute carto project.mml > mapnik.xml and then reload renderd and apache Traditional Chinese is now displayed properly

thanks a lot

(19 Jul '22, 18:17) weiyilai

0

When you restart "renderd" you'll get some font loading messages (and errors).

When you set the server up, you will have installed some fonts via "sudo apt install". Which fonts did you install? Are any not listed at https://switch2osm.org/serving-tiles/manually-building-a-tile-server-ubuntu-22-04-lts/ that are listed at https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md#fonts ?

answered 17 Jul '22, 18:23

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

installed fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-unifont

(17 Jul '22, 18:42) weiyilai
(17 Jul '22, 18:58) weiyilai

I suspect that that is a solution to a different problem. You have a font issue (square boxes instead of characters), they want to display a different language insteaf of "name"?

(17 Jul '22, 19:20) SomeoneElse ♦

I still can't solve it. I have installed traditional Chinese fonts, it's not working

(19 Jul '22, 16:50) weiyilai

Source code available on GitHub .