[PATCH] smallestReadableFont in konsole
Fredrik Höglund
fredrik at kde.org
Tue Oct 9 23:04:53 BST 2007
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
Regards,
Fredrik
More information about the kde-core-devel
mailing list