GNOME Bugzilla – Bug 524690
text alignment incorrect with text-anchor:end
Last modified: 2010-04-17 11:32:14 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:
Created attachment 108127 [details] Test file
Created attachment 108128 [details] EOG output of test file
Created attachment 158941 [details] [review] Fix
Pushed. http://git.gnome.org/browse/librsvg/commit/?id=cde8e3f167f8feaf3b4df24183c64648a5407d1d