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 59364 - Wrong sizing of UML Class objects on zoom <100%
Wrong sizing of UML Class objects on zoom <100%
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.88.x
Other Linux
: Low normal
: ---
Assigned To: Dia maintainers
Dia maintainers
: 59943 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-08-22 13:58 UTC by teo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot (24.19 KB, image/png)
2001-08-22 14:00 UTC, teo
Details

Description teo 2001-08-22 13:58:22 UTC
Hello,

One more bug (feature?). When zooming out of diagram (zoom level < 100%),
class objets  get larger than they should, that is they become wider then
the text that is written into them (or maybe text becomes narrower than it
should?). Probably there is something wrong with text width calculation of
different zoom sizes or choosing right font size. There is no such problem
when zooming in (zoom >100%) or when printing.

Teofilis Martisius,
teo@mediaworks.lt
Comment 1 teo 2001-08-22 14:00:25 UTC
Created attachment 936 [details]
Screenshot
Comment 2 Cyrille Chépélov 2001-08-24 05:32:35 UTC
This will probably go away when we get around to enable freetype.

Comment 3 Cyrille Chépélov 2001-09-03 21:17:03 UTC
*** Bug 59943 has been marked as a duplicate of this bug. ***
Comment 4 James Henstridge 2002-05-02 01:26:17 UTC
Mass reassign of bugs to dia-maint@bugzilla.gnome.org.
Comment 5 Lars Clausen 2002-05-03 03:46:11 UTC
This is a general problem of font scaling that neither GDK nor Freetype entirely solves.  Basically, scaling is not linear when the font gets small.  Since the basic width of the object shouldn't depend on what scale you see it at, we have to use a constant size of the font to calculate the object width.  At smaller font sizes, the text grows (mostly) narrower.  Look at http://shasta.cs.uiuc.edu/~lrclause/Dia/BrownFox.png and http://shasta.cs.uiuc.edu/~lrclause/Dia/BrownFox-nohint.png for what FreeType can do.
Comment 6 Hans Breuer 2004-05-20 21:06:35 UTC
This should be fixed by the scale to fit approach :

2002-06-23  Lars Clausen  <lrclause@cs.uiuc.edu>

	* lib/font.c (dia_font_scaled_build_layout): Removed unworkable
	stretching scheme for tweaking, and made scaling scheme faster
	(but less precise).
	(dia_font_dia_style_to_pango): Oops, % != /.