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 455651 - Right-edge of text truncated
Right-edge of text truncated
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.97
Other All
: Normal normal
: 0.98
Assigned To: Dia maintainers
Dia maintainers
: 500704 598888 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-07-10 19:09 UTC by Leon Stringer
Modified: 2011-06-23 22:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Leon Stringer 2007-07-10 19:09:13 UTC
The right edge of text is sometimes missing. Let's say a diagram has a server with the label 'Server', the right edge of the last 'r' may be chopped off. If I put a space afterwards (i.e. 'Server ') it appears correctly (although this makes it appear slightly off centre). I've tested this with the version checked in SVN today and the problem still occurs.

I thought this occured with printed versions too, but I can't reproduce that right now.

The problem seems to be related to the text size and zoom level, e.g. it may occur with Font Size set to 0.60 but not 0.80.

I see it with the word 'Agent' as a centred Text object, font-size 0.50, zoom-level 141% on Fedora Core 5.
Comment 1 Lars Clausen 2007-08-09 12:50:15 UTC
Confirmed, seen with a simple Text object with the word Server, font size .5 cm, font sans, left-aligned, at 141% zoom, on an Ubuntu Dapper Drake.
Comment 2 Hans Breuer 2007-09-09 17:29:36 UTC
My comment in bug #147386 probably belongs here because 0.93 did not even use Pango ;)

Maybe Dia is not correctly using the ink_rect, e.g.
pango_layout_get_pixel_size() delivers the logical rect which IIRC does not
necessarily include all the space needed for the drawing of the glyphs.

Also the use of pango_layout_iter_get_line_extents() in dia_font_get_sizes()
should be reviewed because it also ignores the ink_rect.

Comment 3 Lars Clausen 2007-12-01 16:50:15 UTC
*** Bug 500704 has been marked as a duplicate of this bug. ***
Comment 4 Hans Breuer 2009-11-08 12:13:09 UTC
*** Bug 598888 has been marked as a duplicate of this bug. ***
Comment 5 Hans Breuer 2009-11-08 12:15:37 UTC
still issues with 0-97