tilemill-project / tilemill

TileMill is a modern map design studio
https://tilemill-project.github.io/tilemill/
BSD 3-Clause "New" or "Revised" License
3.12k stars 527 forks source link

Japanese Label #2629

Closed peppemath closed 6 years ago

peppemath commented 6 years ago

Ciao I need to create a mbtiles file to use offline because there is no internet connection. The area that interests me is Japan: I downloaded the .shp files from geofabrik and imported some layers in my project, in particular I would like to display the names of the cities. The problem is that Japanese characters are displayed with small squares. How can I display Japanese glyphs on labels? Can someone give me a hand ?? Thanks!

japan_tilemill_label_problem

csytsma commented 6 years ago

This would most likely be a Font issue. Make sure your font can handle Unicode. I quickly uploaded a portion of Japan into my Tilemill and it displayed the Japanese glyphs correctly (this is on a Mac).

My Tilemill is setup to use: @sans: "Open Sans Regular","DejaVu Sans Book","unifont Medium";

You could also try using the Japanese font Hiragana instead.

I changed my Tilemill to use "Arial Regular" and I got the boxes instead of the glyphs.

csytsma commented 6 years ago

A little more reading on this topic... https://github.com/tilemill-project/tilemill/issues/2138

peppemath commented 6 years ago

This would most likely be a Font issue. Make sure your font can handle Unicode. I quickly uploaded a portion of Japan into my Tilemill and it displayed the Japanese glyphs correctly (this is on a Mac).

My Tilemill is setup to use: @sans: "Open Sans Regular","DejaVu Sans Book","unifont Medium";

You could also try using the Japanese font Hiragana instead.

I changed my Tilemill to use "Arial Regular" and I got the boxes instead of the glyphs.

It works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! GRAZIE!!!!!!!!!!!!!!