Skip to main content
The 2024 Developer Survey results are live! See the results
added 50 characters in body
Source Link
user11232
user11232
\documentclass{article}
\newlength{\mylen}
\AtBeginDocument{\setlength{\mylen}{\fontcharht\font`T\fontcharht\font`X}}   %% height of TX
\begin{document}
  T\ruleX\rule{5cm}{\mylen}
\end{document}

enter image description hereenter image description here

Thanks to egreg and Barbara.

\documentclass{article}
\newlength{\mylen}
\setlength{\mylen}{\fontcharht\font`T}   %% height of T
\begin{document}
  T\rule{5cm}{\mylen}
\end{document}

enter image description here

\documentclass{article}
\newlength{\mylen}
\AtBeginDocument{\setlength{\mylen}{\fontcharht\font`X}}   %% height of X
\begin{document}
  X\rule{5cm}{\mylen}
\end{document}

enter image description here

Thanks to egreg and Barbara.

Source Link
user11232
user11232

\documentclass{article}
\newlength{\mylen}
\setlength{\mylen}{\fontcharht\font`T}   %% height of T
\begin{document}
  T\rule{5cm}{\mylen}
\end{document}

enter image description here