Re: Units and resolution independence for gtk+



On Wed, 2008-08-06 at 20:46 -0400, Behdad Esfahbod wrote:
> > I think in general you want the UI elements to scale along with how big
> > the font appears on the screen; in other words, I think em is a more
> > natural unit than point. But I'm no expert.
> 
> Sure, then hide the font size and only expose the dpi setting as an
> slider.  Like Apple does...

Yeah, that's a lot more intuitive for most users anyway. Maybe we need
also to patch the font selector so sizes can't be selected ;-) - I
remember Federico blogging about this some time ago:

 http://www.gnome.org/~federico/news-2007-01.html#font-sizes

> > We could also have GDK_UNIT_POINT (not hard to add) but I can't imagine
> > any uses for it...
> 
> I still like being able to set the relative sizes.  For example, some
> scripts require larger font size to be legible.  Persian fonts typically
> render at 140% to visually look the same size as Latin fonts (because of
> larger descent values BTW).

Can we autodetect this and make Pango return the right point size?

     David




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]