I'm using XeLaTeX typesetting Chinese fonts in my document. (So XeLaTeX is the only suitable way for me to do my stuff.) I want to use the LaTex original ptm
font to typeset all English text.
I know there is a simple way to use Times
-related fonts in XeLaTeX, like \setmainfont{Times New Roman}
. But in this way, the ligature doesn't work, even if using:
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Times New Roman}
And anyhow, I still want to use the original ptm
font, not Times New Roman
. There're still some essential designing difference if one look closer at it. I prefer ptm
. So how can I use ptm
?
I'd found
\DeclareFixedFont{\PTMtext}{OT1}{ptm}{m}{n}{12pt}
\PTMtext{blah blah}
works, but only affects in a little region, i.e. cannot work in section
title or math inline mode such like $a=0 \text{if needed}$
, in which 'if needed' is still in lmr
style. And \renewcommand{\rmdefault}{ptm}
doesn't work too.
\setmainfont{TeX Gyre Termes}
Ligatures={Common, TeX}
or for some fonts, Discretionary, Rare or Contextual ligatures. Selecting onlyLigatures=TeX
turns most ligatures off.