From: Chris C. <ca...@al...> - 2002-06-12 20:25:13
|
Hm. Well, I think I've just discovered why the Qt3 menus appear by default to be so squished up -- it's because the Xft smooth fonts are generally a bit taller than the sometimes unnaturally- compressed X bitmap fonts, and they've probably just been trying to make sure the menus look okay with smooth fonts. Which they do (I've just switched to an Xft-smoothed font, which looks nice and also gives me some justification for having paid real money for Adobe Myriad some years ago). The problem is that now the hardcoded 10-pixel specification for the segment and instrument parameter boxes looks terribly small. But before we hardcoded that, we were finding it looked much too big in certain setups, presumably because it was using the size of the "general" font which is unlikely to be especially small. What we really need to do, probably, is to ask for the default font and then reduce it a little bit. QFont doesn't appear to offer any way of making tidy relative changes to font sizes; does KDE? Chris |
From: Guillaume L. <gla...@te...> - 2002-06-12 22:32:45
|
On Wednesday 12 June 2002 22:08, Chris Cannam wrote: > QFont doesn't appear to > offer any way of making tidy relative changes to font sizes; does > KDE? Can you explain to this french person what you mean by "tidy relative changes" ? -- Guillaume. http://www.telegraph-road.org |
From: Chris C. <ca...@al...> - 2002-06-13 08:01:34
|
Guillaume Laurent wrote: > On Wednesday 12 June 2002 22:08, Chris Cannam wrote: > >>QFont doesn't appear to >>offer any way of making tidy relative changes to font sizes; does >>KDE? > > Can you explain to this french person what you mean by "tidy > relative changes" ? Yeah, I just mean setting a font size relative to another one, in a tidy manner. "I want _this_ font, but a bit smaller." Qt seems to allow you to set font sizes by point and pixel, but it doesn't seem to have any concept of a set of standard sizes. KDE font dialogs certainly offer a set of "reasonable" sizes even for scalable fonts, but I don't know whether there's a generic way to get at that information or whether it's just a decision that's taken in the dialog itself. Of course we could take the point size of the standard font and multiply by 0.85 or something, but that might give very strange results especially for non-scalable fonts. Chris |
From: Guillaume L. <gla...@te...> - 2002-06-13 12:44:20
|
On Thursday 13 June 2002 10:02, Chris Cannam wrote: > Qt seems to allow you to set font sizes by point and pixel, but > it doesn't seem to have any concept of a set of standard sizes. Yup. Perhaps QFontDatabase could help ? > KDE font dialogs certainly offer a set of "reasonable" sizes even > for scalable fonts, but I don't know whether there's a generic > way to get at that information or whether it's just a decision > that's taken in the dialog itself. As far as I can tell, there isn't. It's all in the dialog. > Of course we could take the point size of the standard font > and multiply by 0.85 or something, but that might give very > strange results especially for non-scalable fonts. Not necessarily. Qt normally tries to avoid such things by choosing a=20 slightly-different-but-better-looking font if the one you ask for isn't=20 available. --=20 =09=09=09=09Guillaume =09=09=09=09http://www.telegraph-road.org |
From: Chris C. <ca...@al...> - 2002-06-13 12:55:29
|
Guillaume Laurent wrote: > On Thursday 13 June 2002 10:02, Chris Cannam wrote: > >>Qt seems to allow you to set font sizes by point and pixel, but >>it doesn't seem to have any concept of a set of standard sizes. > > Yup. Perhaps QFontDatabase could help ? Well, duh. Chris |