Fonts & Character SetsChanging font sizes in fontspec

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
theo moore
Posts: 72
Joined: Thu Jan 15, 2009 3:16 pm

Changing font sizes in fontspec

Post by theo moore »

Hi, when I use fontspec, in my preamble, I have this

Code: Select all

\setromanfont [Ligatures={Common},Numbers={OldStyle}]{Adobe Caslon Pro}
\setmonofont[Scale=0.8]{Monaco} 
\setsansfont[Scale=0.9]{Optima Regular}
The Scale=x can be used to scale the fonts. Now let's say I want to set the main fontsize at 12pt. How would I do that?

What I mean is if I were to have

Code: Select all

\begin{document}
{\fontsize{12pt}{12pt}
Writing goes here
}
\end{document}
How would I set the fontsize for the whole document? What's the correct command?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Changing font sizes in fontspec

Post by localghost »

Just use the 12pt option for the document class. Regarding the \fontsize command you should do some reading about low-level font commands.


Best regards
Thorsten
Post Reply