[XeTeX] How to use Lucida or Fourier fonts in XeTeX?

Bruno Voisin bvoisin at mac.com
Mon Jun 14 09:31:10 CEST 2004


Le 14 juin 04, à 00:44, Bruno Voisin a écrit :

> Has anybody attempted and managed to use Lucida or Fourier fonts in 
> XeTeX?
>
> [...]
>
> I am writing a document in plain TeX with Trebuchet MS as the text 
> font. Formulae are typeset in CM which look far too thin (and small) 
> compared with Trebuchet; I thought as Lucida as a better match with 
> Trebuchet, and used:
>
> \input lcdplain
> \font\tenrm="Trebuchet MS" at 10pt
> \font\tenit="Trebuchet MS Italic" at 10pt
> \font\tenbf="Trebuchet MS Bold" at 10pt
> \font\tenbi="Trebuchet MS Bold Italic" at 10pt

OK, I've finally solved the problem by going a bit further in the 
redefinitions:

	\input lcdplain

	\font\tenrm="Trebuchet MS" at 10pt
	\font\tenit="Trebuchet MS Italic" at 10pt
	\font\tenbf="Trebuchet MS Bold" at 10pt
	\font\tenbi="Trebuchet MS Bold Italic" at 10pt

	\font\sevenrm="Trebuchet MS" at 7pt
	\font\sevenit="Trebuchet MS Italic" at 7pt
	\font\sevenbf="Trebuchet MS Bold" at 7pt
	\font\sevenbi="Trebuchet MS Bold Italic" at 7pt

	\font\fiverm="Trebuchet MS" at 5pt
	\font\fiveit="Trebuchet MS Italic" at 5pt
	\font\fivebf="Trebuchet MS Bold" at 5pt
	\font\fivebi="Trebuchet MS Bold Italic" at 5pt

	\textfont0=\tenrm \scriptfont0=\sevenrm \scriptscriptfont0=\fiverm
	\def\rm{\fam0\tenrm}
	\newfam\itfam \def\it{\fam\itfam\tenit}
	\textfont\itfam=\tenit \scriptfont\itfam=\sevenit 
\scriptscriptfont\itfam=\fiveit
	\newfam\bffam \def\bf{\fam\bffam\tenbf}
	\textfont\bffam=\tenbf \scriptfont\bffam=\sevenbf 
\scriptscriptfont\bffam=\fivebf
	\newfam\bifam \def\bi{\fam\bifam\tenbi}
	\textfont\bffam=\tenbf \scriptfont\bifam=\sevenbi 
\scriptscriptfont\bifam=\fivebi

	\rm

i.e. by redefining \rm \it etc. *after* loading the Trebuchet fonts.

With that the output of "${\rm e}^{-{\rm i}\sigma t}$ and $e^{-i\sigma 
t}$" looks, typographically speaking, a bit strange (mixture of serif 
and sans-serif in maths), but at least it's correct TeX-wise:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image 2.pdf
Type: application/pdf
Size: 6990 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20040614/9b73aa20/Image2.pdf
-------------- next part --------------


Now I'll be looking for a LaTeX equivalent of the above!

Bruno Voisin


More information about the XeTeX mailing list