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

I have set up the rails port on ubuntu14.04, and then I build my local tile server under the instruction of "Manually building a tile server (14.04)". And I have changed the OSM map to my local tile server. I just import the beijing-china.osm.pbf data to the gis database, everything works well, but when I view the http://localhost:3000 website, I search beijing and the map works well, but rhe names of Chinese places show as messy code, what should I do? alt text

asked 17 Aug '16, 05:14

yuyy's gravatar image

yuyy
236222431
accept rate: 20%


That looks as if you are missing fonts, while not the same style the information on fonts here https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md may be halpful.

permanent link

answered 17 Aug '16, 07:29

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

How can I add fonts? I run the command sudo apt-get install fonts-dejavu-core fonts-droid ttf-unifont \ fonts-sipa-arundina fonts-sil-padauk fonts-khmeros \ fonts-beng-extra fonts-gargi fonts-taml-tscu fonts-tibetan-machine as the install.md said, but it doesn't work, I don't how to add the new install fonts to the stylesheet. Can you express more clearly? I am not familiar with it, thanks.

(17 Aug '16, 09:23) yuyy

You are missing fonts for chinese characters. I think that font style is OSM Bright, which had this problem for a long time. There is now a merged pull request which fixes this problem. So if you downloaded it recently it should work. If not try to redownload.

permanent link

answered 17 Aug '16, 08:11

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

I changed the /usr/local/etc/renderd.conf file, I replace the font_dir=/usr/share/fonts/truetype/ttf-dejavu line with font_dir=/usr/share/fonts/truetype/unifont, then the problem solved. But the pagesite you provide said that unifont does, but it also shows a character for the left-to-right mark, and hence unsuitable. And it said that I should add in the fonts that the https://github.com/gravitystorm/openstreetmap-carto/ project uses, but I don't konw how to add the new fonts, can you help me,thanks.

(17 Aug '16, 10:25) yuyy

I run the command sudo apt-get install fonts-dejavu-core fonts-droid ttf-unifont \ fonts-sipa-arundina fonts-sil-padauk fonts-khmeros \ fonts-beng-extra fonts-gargi fonts-taml-tscu fonts-tibetan-machine as the install.md said in the https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md .But I don't know where did the font download, and the problem do not solve. I then change the /usr/local/etc/renderd.conf file, I replace the font_dir=/usr/share/fonts/truetype/ttf-dejavu line with font_dir=/usr/share/fonts/truetype/unifont, then the problem solved, I don't if the method is correct and would not generate other problems in the future.

permanent link

answered 17 Aug '16, 09:15

yuyy's gravatar image

yuyy
236222431
accept rate: 20%

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:

×204
×105
×34

question asked: 17 Aug '16, 05:14

question was seen: 4,444 times

last updated: 17 Aug '16, 10:25

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