GNOME Bugzilla – Bug 455651
Right-edge of text truncated
Last modified: 2011-06-23 22:20:59 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.
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.
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.
*** Bug 500704 has been marked as a duplicate of this bug. ***
*** Bug 598888 has been marked as a duplicate of this bug. ***
still issues with 0-97
Should be fixed by: http://git.gnome.org/browse/dia/commit/?id=2b9017af13db8b940b4318908ff75b89c2d48de7