summaryrefslogtreecommitdiff
path: root/macros/context/contrib/context-simplefonts/doc/context/third/simplefonts/README
blob: a541e0faacbe99248b8c1b3dd35f7f3226f5227f (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
Modulename : t-simplefonts
Author     : Wolfgang Schuster
License    : GNU General Public License

Description
-----------

The 'simplefonts' module provides a interface to use fonts in ConTeXt MkIV
in similar way as you can do with the 'fontspec' package for XeLaTeX.

Usage
-----

The module is loaded in the document with:

    \usemodule[simplefonts]

The global fonts can be set with the following three commands:

    \setmainfont[...][..,..=..,..]
    \setsansfont[...][..,..=..,..]
    \setmonofont[...][..,..=..,..]

A single typeface can bet set with the command:

    \definesimplefonttypeface[...][...][..,..=..,..]

For each a complete typeface switch like \switchtobodyfont but you can use

  \simplefonttypeface[...][..,..=..,..]

With the command

    \definesimplefont[...][..,..=..,..]

you can define a single font for the use in header or other style elements and the last commmand

    \simplefont[...][..,..=..,..]

is for inline use and acts like \definedfont.