TransWikia.com

Setting default font size in newfontfamily

TeX - LaTeX Asked on March 16, 2021

When mixing fonts in XeTeX, some fonts have quite different aspects for the same size.

Say, I’m using Linux Libertine as my main font and I want to use Latino Elongated for chapter headings. Latino Elongated is quite smaller than Linux Libertine for the same font size (11pt).

Is there a way to specify the default font size when loading a font via newfontfamily, such that all text written using that font is scaled up?

One Answer

newfontfamily{myfamily}{My Font}[Scale=MatchUppercase]
newfontfamily{myfamily}{My Font}[Scale=MatchLowercase]
newfontfamily{myfamily}{My Font}[Scale=0.8]

Choose what suits you best.

In old syntax:

newfontfamily{myfamily}[Scale=MatchUppercase]{My Font}
newfontfamily{myfamily}[Scale=MatchLowercase]{My Font}
newfontfamily{myfamily}[Scale=0.8]{My Font}

Correct answer by egreg on March 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP