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 168223 - text rendering offset
text rendering offset
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.9.x
Other All
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2005-02-23 03:09 UTC by Jakub Steiner
Modified: 2008-02-24 15:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
notice the label clipping when rendered with librsvg (106.83 KB, image/svg+xml)
2005-02-23 03:10 UTC, Jakub Steiner
  Details
librsvg rendering (9.86 KB, image/png)
2005-02-23 03:11 UTC, Jakub Steiner
  Details
Inkscape rendering of the file. (10.53 KB, image/png)
2005-02-23 03:12 UTC, Jakub Steiner
  Details
bug168223.diff (460 bytes, patch)
2006-02-07 19:01 UTC, Rob Staudinger
needs-work Details | Review

Description Jakub Steiner 2005-02-23 03:09:23 UTC
Please describe the problem:
Not sure if this is a bug in librsvg or inkscape, but text rendering is clipped
in  the attached SVG. The font seems to be the right one though.

Steps to reproduce:
 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Jakub Steiner 2005-02-23 03:10:48 UTC
Created attachment 37816 [details]
notice the label clipping when rendered with librsvg
Comment 2 Jakub Steiner 2005-02-23 03:11:21 UTC
Created attachment 37817 [details]
librsvg rendering
Comment 3 Jakub Steiner 2005-02-23 03:12:46 UTC
Created attachment 37818 [details]
Inkscape rendering of the file.
Comment 4 Rob Staudinger 2006-02-07 19:01:42 UTC
Created attachment 58878 [details] [review]
bug168223.diff

Bit of a guess but it works. Would have to be tested with some more text-y SVGs.
Not sure why text extents are calculated MIN(ink, logical) in the first place.
Comment 5 Dominic Lachowicz 2006-02-07 19:15:55 UTC
Patch approved. Nice catch, Rob!
Comment 6 Rob Staudinger 2006-02-07 19:24:49 UTC
commited
Comment 7 Rob Staudinger 2006-02-15 13:07:38 UTC
Patch causes side-effects, reverting, reopening
Comment 8 Dominic Lachowicz 2008-02-24 15:03:23 UTC
Looks fine with SVN trunk. Behdad did some work wrt. ink extents that probably fixed this.