map didn't show zh-hant, how do i fix?
thanks a lot.
|
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:
it should at least not display "little square boxes". installed fonts-hanazano and it still doesn't work Am I missing something? Thanks a lot
(19 Jul '22, 17:57)
weiyilai
1
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
|
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 ? installed fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-unifont
(17 Jul '22, 18:42)
weiyilai
I'm not sure if this can be solved https://www.openstreetmap.org/user/demonshreder/diary/43956
(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
|
The previous part of this story is in https://help.openstreetmap.org/questions/85089/manually-building-a-tile-server-ubuntu-2204-lts-an-error-has-occured .
tile it's not found. https://imgur.com/zfduAxU