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

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%


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".

permanent link

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

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 ?

permanent link

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
Your answer
toggle preview

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:

×1
×1

question asked: 17 Jul '22, 17:58

question was seen: 824 times

last updated: 21 Jul '22, 14:30

Related questions

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