Bug#239274: text-anchor fails with some non-"us-ascii" characters
Mark Charter
Mark Charter <mark@nctr.co.uk>, 239274@bugs.debian.org
Mon, 22 Mar 2004 00:14:11 +0000
Package: librsvg2-common
Version: 2.5.0-2
Characters not in the "us-ascii" character set seem to confuse the
text alignment process, as shown in the following example:
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" width="200px" height="150px">
<title>
Alignment test
</title>
<g>
<path fill="white" stroke="none" d="M 0 0 H 200 V 150 H 0 z" />
</g>
<g transform="translate(100,75)">
<g fill="black" font-family="sans-serif" font-size="10" font-weight="normal">
<text text-anchor="start" x="0" y="-40">Kaytettavissa</text>
<text text-anchor="middle" x="0" y="-25">Kaytettavissa</text>
<text text-anchor="end" x="0" y="-10">Kaytettavissa</text>
<text text-anchor="start" x="0" y="10" >Käytettävissä</text>
<text text-anchor="middle" x="0" y="25" >Käytettävissä</text>
<text text-anchor="end" x="0" y="40" >Käytettävissä</text>
</g>
</g>
</svg>
When this is processed by rsvg, the first three lines are correctly
aligned, as specified by text-anchor, but the last three lines,
including "non-standard" characters, are not.
I am using Debian GNU/Linux 3.1, kernel 2.4.25-1-686
and libc6 2.3.2.ds1-11.
--
Mark Charter, Tel: +44 1223 312562
Non-Cooperative Target Recognition Ltd., Mobile: +44 7818 414351
20 Cockcroft Place,
CAMBRIDGE E-mail: mark@nctr.co.uk
ENGLAND CB3 0HF WWW: http://www.nctr.co.uk