Code: Select all
\fontsize{18}{50}
\fontspec{Adobe Caslon Pro}
Text goes here
Code: Select all
{
\fontsize{18}{50}
\fontspec{Adobe Caslon Pro}
Text goes here
}
Here is a minimum example:
Code: Select all
\documentclass[11pt,a4paper]{memoir}
\usepackage{leading}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text} %converts quotes, dashes, ... to unicode
\setromanfont [Ligatures={Common},Numbers={OldStyle}]{Adobe Caslon Pro}
\pagestyle{empty}
\begin{document}
{
\fontsize{18}{20}
\fontspec{Adobe Caslon Pro}
\noindent This is a line with size 18pt and \\
leading of 20 pt
}
\mbox{}\par
{
\fontsize{18}{30}
\fontspec{Adobe Caslon Pro}
\noindent This is a line with size 18pt and \\
leading of 30 pt. Why is there no difference?
}
\mbox{}\par
{
\fontsize{28}{30}
\fontspec{Adobe Caslon Pro}
\noindent Changing the font size works \\
But the leading has no change
}
\mbox{}\par
\fontsize{18}{50}
\fontspec{Adobe Caslon Pro}
\noindent It only works \\
If you remove the curly braces. Why???
\end{document}