hello I installed osm on my Ubuntu server, as shown in the photo below. The Korean language, Hangul, however, retrieve broken. I faithfully as a guide, but many times, even if you tried any of these symptoms appear. The procedure below.(Very simple)
·
·5. osm2pgsql --slim -C 1500 ireland.osm.pbf ·6. restart … Below is the result of my test.
What is the problem?....... bohoo.... asked 22 Apr '13, 03:40 sgGold aseerel4c26 ♦ |
Make sure that you have the "unifont" font installed ( answered 22 Apr '13, 09:58 Frederik Ramm ♦ 1
Thank you for answer. I as directed, using the command "sudo apt-get install ttf-unifont" The installation finished successfully, reboot. Sadly, the result was the same. , "Fontset-settings.xml" I open the file but it was in the set. You, the font is installed correctly, there should not? mtis @ ubuntu: ~ $ sudo find /-name unifont * / usr / share / fonts / truetype / unifont / usr / share / fonts / truetype / unifont / unifont.ttf
(22 Apr '13, 10:27)
sgGold
(22 Apr '13, 10:28)
sgGold
Your comment comes out a bit garbled, but notice that the character combination "less than" "exlamation mark" "minus" "minus" is the beginning of a comment in XML ("minus" "minus" "greater than" is the end of a comment) so it looks like the unifont might be commented out in your fontset-settings.inc?
(23 Apr '13, 18:55)
Frederik Ramm ♦
(meta @Frederik Ramm: fixed the code formatting)
(23 Apr '13, 23:38)
aseerel4c26 ♦
Thank you.I did not know that it is there, the line block. However, on the DejaVu font, erase Leaving Unifont only Does not generate tiles ... I think, to get back to after the following procedure to install the font. What do you think? I'm confused. Boohoo
(29 Apr '13, 03:26)
sgGold
|
Not all fonts are able to display all UTF-8 characters. The DejaVu font for example doesn't appear to be able to display Korean characters, which is what leads to your problem. Mapnik, the rendering library used to generate the tiles, has the ability to use alternative fonts for those characters that aren't supported by the default font. This alternative font is specified (as you have now done) in the style sheet in font-settings.xml.inc. In addition, however, you need to tell mapnik where to find this alternative font. As you are using renderd as your driver for mapnik, the way you tell mapnik where to look for the fonts is in /etc/renderd.conf In that file, there is a configuration parameter font_dir ( https://github.com/openstreetmap/mod_tile/blob/master/debian/renderd.conf#L9 ) and font_dir_recurse. In the default /etc/renderd.conf these parameters are set wrong, as they point directly to the dejavu font, rather than the generic font dir and then recurse in to load all fonts. So if you set font_dir_recurse to true and then change font_dir to the generic /usr/share/fonts/truetype/ you should hopefully get mapnik to load the unifont, which should then render the Korean characters correctly. The Ubuntu 13.04 packages I uploaded a couple of days ago should have this fixed, but I haven't uploaded corrected packages yet for the older versions of Ubuntu. answered 29 Apr '13, 10:26 apmon |