[PATCH] smallestReadableFont in konsole

Sebastian Kügler sebas at kde.org
Wed Oct 10 11:34:16 BST 2007


On Wednesday 10 October 2007 00:04:53 Fredrik Höglund wrote:
> On Tuesday 09 October 2007 18:03, Sebastian Kügler wrote:
> > Currently, the minimum font one can set from the slider in konsole's
> > "Edit current profile" dialogue is set to 9. Setttings below that are
> > possible, but only via the "Edit font" button. I'd say that fonts smaller
> > than that are quite common, at least I find myself fiddling with that
> > quite often.
> >
> > The attached patch changes the minimum one can directly set with the
> > slider to KGlobalSetting's smallestReadableFont, but at least 3. (I don't
> > think that fonts smaller than 3 are common, but I'll leave that to your
> > discussion.)
>
> The perceived size of a font of depends more on its x-height than it does
> on its point size. Since two fonts with the same point size can have very
> different x-heights, it isn't safe to take the point size of a font you
> know is legible, apply it to another font, and assume you'll end up with
> readable text.
>
> I suggest reading this discussion about the issue, which also includes a
> formula for computing the equivalent perceived size for one font based
> on the known metrics of another:
>
> http://www.w3.org/TR/2002/WD-css3-fonts-20020802/#font-size-adjust

Thanks for the interesting pointer. It looks like something that could be 
integrated into KGlobalSettings, to make a smallestReadableFixedFont() 
available. For now, I've committed a minimal fix to the default for the 
slider though (after Robert's review).
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071010/6cb7dd05/attachment.sig>


More information about the kde-core-devel mailing list