summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xetex/fontspec/README
blob: b9f6e1b014b397dbfe00318e810f81e57784ce9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
--------------------------
THE FONTSPEC PACKAGE v1.10

The fontspec package only works with XeTeX, a unicode capable TeX-variant. It provides an automatic and unified interface for loading fonts in LaTeX. XeTeX allows a direct interface to system-installed fonts, so no manual font installation is required.

This package also provides access to the large number of font features available with AAT and OpenType fonts, including upper and lower case numbers, proportional and monospaced numbers, swash letters, vulgar fractions, ligature control, and many others.

It also provides an interface to set the XeTeX font mappings, font colour, relative font scaling, inter-word space scaling, and more.

------------------------
SUMMARY OF USER COMMANDS

Font families may be selected individually with the command
   \fontspec[<font options>]{<font name>}

Commands for selecting fonts efficiently can be created with
   \newfontinstance\myfont[<font options>]{<font name>}

Default document fonts are selected with 
   \setromanfont[<font options>]{<font name>}
   \setsansfont[<font options>]{<font name>}
   \setmonofont[<font options>]{<font name>}

Fonts to be used in maths are defined with 
   \setmathrm[<font options>]{<font name>}
   \setmathsf[<font options>]{<font name>}
   \setmathtt[<font options>]{<font name>}
   \setboldmathrm[<font options>]{<font name>}

Features to be used for every subsequently defined font are specified with
   \defaultfontfeatures{<default font options>}

Features may be added to the font currently in use with
   \addfontfeatures{<font options to add>}
   \addfontfeature{<...>} does the same thing

Features not provided for out of the box may be defined with
   \newAATfeature{<feature tag>}{<feature code>}{<selector code>}
   \newICUfeature{<feature tag>}{[+|-]<4 letter feature string>}
   \newfontfeature{<feature tag>}{<arbitrary XeTeX font options>}

Features can be renamed and feature options can be renamed with
   \aliasfontfeature{<current feature>}{<new feature>}
   \aliasfontfeatureoption{<feature>}{<current option>}{<new option>}

--------------
Will Robertson
2006