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? asked 17 Aug '16, 05:14 yuyy |
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. answered 17 Aug '16, 07:29 SimonPoole ♦ 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. answered 17 Aug '16, 08:11 rorym 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. answered 17 Aug '16, 09:15 yuyy |