After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 524690 - text alignment incorrect with text-anchor:end
text alignment incorrect with text-anchor:end
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.18.x
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks: 525023
 
 
Reported: 2008-03-27 18:38 UTC by ccprog
Modified: 2010-04-17 11:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Test file (2.17 KB, application/xml)
2008-03-27 18:39 UTC, ccprog
  Details
EOG output of test file (9.52 KB, image/png)
2008-03-27 18:39 UTC, ccprog
  Details
Fix (1.87 KB, patch)
2010-04-17 08:15 UTC, Hiroyuki Ikezoe
committed Details | Review

Description ccprog 2008-03-27 18:38:18 UTC
Please describe the problem:
When right-aligning a text with style="text-anchor:end", the text may not really be consistently alligned, when letter spacing is altered in the line, for example with "font-style:bold". The problem is much more pronounced when bold and normal styles are mixed inside a text element.

Steps to reproduce:
Test file alignment_test.svg and EOG output alignment_test_eog.png will be attached. First and fourth line: correct right-side alignment with vertical line. Second and fifth line: Slight displacement to the right. Third and sixth line are off for almost 0.5em.

Actual results:


Expected results:
Inkscape and Mozilla both show consistent alignment of all lines

Does this happen every time?
Yes. This even holds true when uploading files to Wikimedia.

Other information:
Comment 1 ccprog 2008-03-27 18:39:18 UTC
Created attachment 108127 [details]
Test file
Comment 2 ccprog 2008-03-27 18:39:58 UTC
Created attachment 108128 [details]
EOG output of test file
Comment 3 Hiroyuki Ikezoe 2010-04-17 08:15:28 UTC
Created attachment 158941 [details] [review]
Fix