You are not logged in.

#1 2014-02-24 11:17:38

pnorman
Member
Registered: 2012-03-31
Posts: 19

Thai font feedback for style updates

Right now the main OpenStreetMap.org stylesheet uses Unifont as a fallback for characters not in the DejaVu font. As Unifont is designed to support all characters and not to look good, this can lead to ugly and difficult to read text in parts.

I'm looking at Thai fonts right now and would like some people to evaluate the difference between the "OpenStreetMap" and "Arundina Sans" layers on http://tile.paulnorman.ca/demo/fonts.html

Some examples

- Bolded refs: http://tile.paulnorman.ca/demo/fonts.ht … 66/100.445
- Some place names, POIs: http://tile.paulnorman.ca/demo/fonts.ht … .82/100.06
- Overview: http://tile.paulnorman.ca/demo/fonts.ht … .74/100.46

If you aren't certain you can look at the "No Unifont Fallback" layer to see if there are boxes - if there are on that layer but not the "Arundina Sans" layer, then it's using the new fonts.

To clarify, since I got some unrelated responses last time, I'm not looking for feedback on glyphs in other scripts (e.g. Chinese) with this test. This test is purely for Thai characters.

Cross-posting to talk@ and OSM Thai forum

Offline

#2 2014-02-24 18:13:34

Bernhard Hiller
Member
Registered: 2011-05-10
Posts: 1,056

Re: Thai font feedback for style updates

Arudina looks better - it is also a little bigger. I'd prefer even bigger Thai fonts...

Offline

#3 2014-02-24 18:50:59

Paul_012
Member
Registered: 2011-08-05
Posts: 211

Re: Thai font feedback for style updates

Agreed. Arundina Sans looks much better.

Offline

#4 2014-02-24 22:39:13

pnorman
Member
Registered: 2012-03-31
Posts: 19

Re: Thai font feedback for style updates

It looks like the tone characters are being hit by a bug in Mapnik (https://github.com/mapnik/mapnik/issues/2161), leading to them being placed too high. I doubt this is going to be fixed immediately, these problems have taken time in the past.
With this bug, do you think it's still an improvement?

Also, although it looks bigger, the actual font size is the same. The difference has to do with relative heights of letters, and the old font being so ugly.

944b2c7e-9d93-11e3-85c1-c10914cb47e8.png

Offline

#5 2014-02-24 22:42:14

stephankn
Moderator
Registered: 2010-05-04
Posts: 622

Re: Thai font feedback for style updates

I'm using Loma, which is also a good font for rendering Thai script.
http://linux.thai.net/projects/thaifonts-scalable

Your map is missing some street names, compare Rattanakosin road with Thaimap. Other roads as well. Might be a mapnik bug. Are you using harfbuzz?
http://tile.paulnorman.ca/demo/fonts.ht … 0/99.00815
http://thaimap.osm-tools.org/?zoom=19&l … yers=B000T

Thai font size is better than original OSM. Your Latin script looks too small.
compare rendering of Eurana here:
Yours:
117135.png
Thaimap:
117135.png

Mix of Latin/Thai looks promising. I found only examples with Arabic numbers, but the height of these compared to Thai glyphs is fine:
117134.png

Offline

#6 2014-02-24 22:46:30

stephankn
Moderator
Registered: 2010-05-04
Posts: 622

Re: Thai font feedback for style updates

tone marks look fine on Thaimap. Can some native speaker please confirm? Also Thaimap renders a lot more street names in Thai which are simply mission on osm.org. I guess 20% of the names are missing there.

1830.png

Offline

#7 2014-02-25 23:30:08

pnorman
Member
Registered: 2012-03-31
Posts: 19

Re: Thai font feedback for style updates

I looked at Loma, but Arundina has better DejaVu compatibility. The data on my server is a couple months old, so it probably has less names for that reason. I'm loading up a new extract to test Khmer, and I'll refresh the tiles then.

My work is also based on the latest openstreetmap-carto revision, and I 'm not sure what thaimap uses.

Offline

#8 2014-03-14 20:07:18

pnorman
Member
Registered: 2012-03-31
Posts: 19

Re: Thai font feedback for style updates

The changes have been merged and are now in use on openstreetmap.org. There are the tone character bugs, but we need a new Mapnik release to fix those. There are also the same bugs in nearby countries with similar complicated language features.

Offline

Board footer

Powered by FluxBB