When we set the fontsize to be 20 points I am wondering which size of the fbox bonding box enclosing a letter is 20 points. To understand I write a code as below and there are two main questions I have:
- Although I set the fontsize to be 20, neither the width nor the height of the letter bonding boxes are 20 points (they are smaller) for both lower case and upper case letters. So which size in the fbox is 20 points?
- I also change the line spacing to be 20 but we see the spacing between the baselines are around 40 points, why?
\documentclass{book}
\fboxrule=0.1pt
\fboxsep=-\fboxrule
\usepackage{xcolor}
\renewcommand\fbox{\fcolorbox{red}{white}}
\usepackage[grid,
gridcolor=blue!60!white,
subgridcolor=green!40!white,
gridunit=pt]{eso-pic}
%\usefont{<encoding>}{<family>}{<series>}{<shape>}
%\fontsize{size}{skip}
\newcommand{\myfont}{\usefont{T1}{cmr}{m}{n}\fontsize{20}{20} \selectfont}
\begin{document}
\myfont
\fbox{a}\fbox{b}\fbox{c}\fbox{d}\fbox{e}\fbox{f}\fbox{g}\fbox{h}
\fbox{i}\fbox{j}\fbox{k}\fbox{l}\fbox{m}\
fbox{n}\fbox{o}
\fbox{p}\fbox{q}\fbox{r}\fbox{s}\fbox{t}\fbox{u}\fbox{v}\fbox{w}\fbox{x}\fbox{y}\fbox{z}\\
\fbox{A}\fbox{B}\fbox{C}\fbox{D}\fbox{E}\fbox{F}\fbox{G}
\fbox{H}\fbox{I}\fbox{J}\fbox{K}\fbox{L}\fbox{M}
\fbox{N}\fbox{O}
\fbox{P}\fbox{Q}\fbox{R}\fbox{S}\fbox{T}
\fbox{U}\fbox{V}\fbox{W}\fbox{X}\fbox{Y}\fbox{Z}\\
\end{document}
\fbox{(}
or\fbox{)}
will have a total height (height plus depth) of 20pt (if you also have\fboxsep=-\fboxrule
, of course). 2.\\
causes a manual line break, which becomes an empty line. You end up moving two\baselineskip
s downward, so there is 40pt of distance between two baselines.