With the package anyfontsize
I can use the command \fontsize{}{}
. But the second argument seems to be without any effect. I read there that it is related to the line space. It doesn't work.
\documentclass{article}
\usepackage{anyfontsize}
\begin{document}
{\fontsize{1cm}{1cm}\selectfont First test : I need to put some text here.}
\bigskip
{\fontsize{1cm}{2cm}\selectfont Second test : I need to put some text here --- does it work?}
\end{document}
Any clue?
\par
afterdoes it work?
inside the braces and you'll see the effect\par
ends a paragraph (the same what an empty line does). In your case the font changes are forgotten when the paragraph is ends so when it is typeset the new baselineskip also is forgotten.\par
ensures that the paragraph is ended and typeset before the closing brace.fontspec
for Xelatex of Lualatex, you do not need to explicitly loadanyfontsize
.