Consider the following LaTeX manuscript:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times}
\begin{document}
\fontsize{50}{50}\selectfont
Hello, world!
\end{document}
When processed with xelatex
, it renders the text as follows. In particular, the font size is 50pt
, as expected:
If I now move the \fontsize...\selectfont
commands to the preamble, like this:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times}
\fontsize{50}{50}\selectfont
\begin{document}
Hello, world!
\end{document}
xelatex
ignores the size specifications, and the text renders small:
Why is this?
\begin{document}
calls for\normalsize
which negates your font size setting. See tex.stackexchange.com/a/152085/117534 – Troy Jul 29 '17 at 6:32