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

asked 17 Jul, 17:58

weiyilai's gravatar image

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, 17:40

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

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

Thanks a lot

(19 Jul, 17:57) weiyilai

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, 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, 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 that are listed at ?

permanent link

answered 17 Jul, 18:23

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

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

(17 Jul, 18:42) weiyilai
(17 Jul, 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, 19:20) SomeoneElse ♦

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

(19 Jul, 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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 17 Jul, 17:58

question was seen: 267 times

last updated: 21 Jul, 14:30

Related questions

powered by OSQA