GNOME Bugzilla – Bug 59364
Wrong sizing of UML Class objects on zoom <100%
Last modified: 2004-12-22 21:47:04 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
Created attachment 936 [details] Screenshot
This will probably go away when we get around to enable freetype.
*** Bug 59943 has been marked as a duplicate of this bug. ***
Mass reassign of bugs to dia-maint@bugzilla.gnome.org.
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.
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, % != /.