[Tilesathome] Check font rendering
Stephan Knauss
osm at stephans-server.de
Sat Sep 5 13:31:00 BST 2009
Knut Arne Bjørndal wrote:
> The other would be to use SVG fonts, see this trac ticket for some
> thoughts on the subject: http://trac.openstreetmap.org/ticket/1228
Sounds like a good idea.
I did a test with batik and unifont. Looks fine, maybe a bit pixelated.
Not sure, maybe unifont is a bitmap font.
java -jar batik-ttf2svg.jar unifont-5.1.20080907.ttf -l 3584 -h 3711 -id
MyThaiSVG -o myThaiSVG.svg -testcard
I then replaced the text of the testcard with this:
; font-size:36;fill:black">
<text x="20" y="60">
฀กขฃคฅฆงจฉชซฌญฎฏ</text>
<text x="20"
y="120">ฐฑฒณดตถทธนบปผฝพฟ</text>
<text x="20"
y="180">ภมยรฤลฦวศษสหฬอฮฯ</text>
<text x="20"
y="240">ะัาำิีึืฺุู฻฼฽฾฿</text>
<text x="20"
y="300">เแโใไๅๆ็่้๊๋์ํ๎๏</text>
<text x="20"
y="360">๐๑๒๓๔๕๖๗๘๙๚๛๜๝๞๟</text>
<text x="20"
y="420">๠๡๢๣๤๥๦๧๨๩๪๫๬๭๮๯</text>
<text x="20"
y="480">๰๱๲๳๴๵๶๷๸๹๺๻๼๽๾๿</text>
and rasterized:
java -jar batik-rasterizer.jar -h 800 -w 600 myThaiSVG.svg
The result is attached.
Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myThaiSVG.png
Type: image/png
Size: 9209 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20090905/1caf3604/attachment.png>
More information about the Tilesathome
mailing list