[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Mising KGlobalSettings::smallFont()
From:       "Boyd Stephen Smith Jr." <bss03 () volumehost ! net>
Date:       2007-06-17 0:11:31
Message-ID: 200706161911.31580.bss03 () volumehost ! net
[Download RAW message or body]


On Saturday 16 June 2007, Alex Merry <huntedhacker@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@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic