Mising KGlobalSettings::smallFont()

Boyd Stephen Smith Jr. bss03 at volumehost.net
Sun Jun 17 01:11:31 BST 2007


On Saturday 16 June 2007, Alex Merry <huntedhacker at tiscali.co.uk> wrote 
about 'Re: Mising KGlobalSettings::smallFont()':
> On Saturday 16 Jun 2007, Thomas Zander wrote:
> > On Friday 15 June 2007 18:58:25 Jaroslaw Staniek wrote:
> > > Last year or earlier I proposed addition to global settings (and
> > > control centre as well): "default smallest reasonable font", i.e.
> > >
> > > static QFont KGlobalSettings::smallFont()
> >
> > I think it makes sense to have a 'smallest reasonable font', but the
> > suggested method name doesn't show that it does that.
> > Better think of a more matching name.

QFont KGlobalSettings::minimizeFont(const QFont &)

I like this because some fonts are smaller than other at a given "point 
size", but this method could take actual pixel size of the chosen font and 
current dpi into account.  It might also perform intelligent font face 
substitution if the original face was unavailable or inappropriate at 
small sizes.

This also allows a bit other flexibility, since "small text" may need to be 
rendered fixed-width in some applications and variable-width in others.  
Still others might even try and use "decroative" fonts at that size, 
although readability in that case might suffer.

Example invocations:
KGlobalSettings::minimizeFont(KGlobalSettings::generalFont())
KGlobalSettings::minimizeFont(KGlobalSettings::fixedFont())
KGlobalSettings::minimizeFont(my_application_custom_font)

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03 at volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070616/9edd5931/attachment.sig>


More information about the kde-core-devel mailing list