[texhax] query font size in document

Uwe Lück uwe.lueck at web.de
Fri Jan 4 10:37:50 CET 2013


Am Mittwoch, den 02.01.2013, 00:17 +0100 schrieb Uwe Lück:
> [summary: \f at size]
> 
> Am Dienstag, den 01.01.2013, 10:17 -0800 schrieb Pierre MacKay:
> > \show\the\font is a basic TeX sequence which ought to work in LaTeX.
> > It should be placed immediately following a word that you know ought
> > to be in the font you want to identify.  It will temporarily suspend
> > TeX, which can be started again with a CR.  It should have no effect
> > on the DVI output, but will be recorded in the log file. You can also
> > get at the standard \fontdimen s such as \fontdimen2, the default
> > interword skip in  similar ways.  \show\thefont will drill down to the
> > original basic font definition, which may not be the way LaTeX chooses
> > to refer to it.
> 
> Is this a way to find the answer for the OP's question on "what is the
> font size currently being used?" Actually, I am away from my TeXbook, 
> I believe there is some <m> such that \fontdimen<m>\font is the current 
> em size, which may be a good guess ...

back at my TeXbook (p. 433): \fontdimen6\font is quad width, AFAIK same 
as "design size", see 

    http://en.wikipedia.org/wiki/Em_%28typography%29

or "height of em-size" in

    http://en.wikipedia.org/wiki/Typeface

Good luck,

    Uwe.





More information about the texhax mailing list