Re: A proposal for units in GTK+



CSS seems to define an em as the font's height.
http://www.w3.org/TR/REC-CSS1#length-units

H1 { margin: 0.5em }      /* ems, the height of the element's font */

Noah


On Mon, Feb 03, 2003 at 23:20:47 +0100, Matthias Clasen wrote:
> On Mon, 2003-02-03 at 21:33, Jonathan Blandford wrote:
> > 
> > Additionally, I don't know if we want to distinguish between height
> and
> > width of a font, as an 'em' is technically only a horizontal unit of
> > measure.  Adding two font-based units seems to be possibly too
> > confusing, though.
> 
> The TeXbook says (p.60)
> 
> em is the width of a "quad" in the current font;
> ex is the "x-height" of the current font.
> 
> [...] It is generally best to use em for horizontal measurements and ex
> for vertical measurements that depend on the current font.
> 
> 
> But that might be more relevant for typography than for UI design...
> 
> Matthias
>  
> 
> 
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list



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