I want to determine the heights of a font.


\f@size gives me the total height of the line. This should be top line to bottom line. How can I determine the length between top and 2 (fat) and the length between 3 and bottom? Because they needn't be to be the same. I tried \advance by -1ex and dividing by 2, but this doesn't work as intended (accurate).


In the calc packet the commands \heightof and \depthof can be used. For clarity I use lengths for all the distances, and in \Epheightdiff the difference in height between E and p is given.




enter image description here


\f@size relates to the nominal font size as specified by the font designer, it doesn't relate to any length that may be measured within the font.

Assuming etex you can find the height and depth of any character (for example p) via

\fontcharht \font `\p

\fontchardp \font `\p


  • This would explain the aberrations in my example. Nov 13 '16 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.