How to get the font size

Ralf Angeli angeli at iwi.uni-sb.de
Thu Mar 17 03:09:18 EST 2005


* Stephen J. Turnbull (2005-03-16) writes:

>>>>>> "Ralf" == Ralf Angeli <angeli at iwi.uni-sb.de> writes:
>
>     Ralf> Is this an appropriate way to handle this in XEmacs?  (I am
>     Ralf> not really sure because `font-size' is undocumented and I
>     Ralf> had to look at `x-font-create-object' in order to see what
>     Ralf> it may return.)  Or is there a better method?
>
> It's probably not a good idea to use undocumented functions in this
> module.  My feeling is that font.el is likely to change dramatically,
> maybe even disappear, in 22.0.  Given that we have known bugs in face
> sizing, that might get backported to 21.4, even.
>
> I would say your best bet is to use either face-height, and live with
> the inaccuracy, or to use custom-face-font-size.  Maybe somebody else
> can be more optimistic, though.

Okay, thank you for this information.  In that case I'll probably
settle with something like (round (* .9 (face-height 'default))) which
should return values a little closer to the actual font size.

-- 
Ralf




More information about the XEmacs-Beta mailing list