[XeTeX] xelatex using fontspec package
Karl.Sommer at dpi.vic.gov.au
Karl.Sommer at dpi.vic.gov.au
Mon May 19 07:31:40 CEST 2008
Hello
I have been using latex for a few years now and recently have become
acquainted with XeLatex through a MikTeX 2.7 installation running under
Windows XP.
I attempted to use the fontspec package to configure some font features
using colour as outlined in the following example.
\documentclass{article}
\usepackage{fontspec, xltxtra, xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[UprightFeatures={Color=220022,
SmallCapsFeatures={Color=115511}},
ItalicFeatures={Color=2244FF,
SmallCapsFeatures={Color=112299}},
BoldFeatures={Color=FF4422,
SmallCapsFeatures={Color=992211}},
BoldItalicFeatures={Color=888844,
SmallCapsFeatures={Color=444422}}
]{Palatino Linotype}
\usepackage{color,graphicx}
\begin{document}
Upright {\scshape Small Caps}\\
\itshape Italic {\scshape Italic Small Caps}\\
\upshape\bfseries Bold {\scshape Bold Small Caps}\\
\itshape Bold Italic {\scshape Bold Italic Small Caps}
\end{document}
The only font I was able to invoke \scshape successfully was "Palatino
Linotype" but not in "Times New Roman", "Garamond" or "Georgia". Does
that mean I don't have that feature installed for those fonts? If this is
the case, how would I go about installing the missing features?
Regards
Karl
Dr Karl J Sommer
Department of Primary Industries
PO Box 905
Mildura, VIC, 3502, Australia
T +61 (0)3 5051 4390
F +61 (0)3 5051 4534
e-mail: karl.sommer at dpi.vic.gov.au
Notice:
This email and any attachments may contain information that is personal,
confidential, legally privileged and/or copyright.No part of it should be reproduced,
adapted or communicated without the prior written consent of the copyright owner.
It is the responsibility of the recipient to check for and remove viruses.
If you have received this email in error, please notify the sender by return email, delete
it from your system and destroy any copies. You are not authorised to use, communicate or rely on the information
contained in this email.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080519/f346355b/attachment.html
More information about the XeTeX
mailing list