16

I wish to use the font tgpagella without it being used throughout the entire document. How do I import this font into my document without causing it to be used by default?

Josh
  • 789
  • 3
  • 9
  • 15

1 Answers1

18

If you look into tgpagella.sty, you find there (after some complex code setting the scaling which you probably do not need) the line \renewcommand{\rmdefault}{qpl}. This means that tgpagella font is encoded by fontname scheme as qpl. Then the solution is to call this family directly:

\documentclass{article}
\pagestyle{empty}
\begin{document}
This is typeset in default font.  {\fontfamily{qpl}\selectfont This
  is typeset in tgpagella.}  And default font again.
\end{document}

enter image description here

Boris
  • 38,129