summaryrefslogtreecommitdiff
path: root/tex/context/base/type-imp-averia.mkiv
blob: 3107043780f9fd363c76817ef4e4dc8085b8093c (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%D \module
%D   [       file=type-imp-averia,
%D        version=2012.04.24,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Averia fonts (iotic.com),
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D The fonts can be downloaded from the (nice looking) page:
%D
%D \starttyping
%D http://iotic.com/averia
%D \stoptyping
%D
%D This link was posted by Aditya on the ConTeXt mailing list.
%D
%D There is no monospace font yet.

\starttypescriptcollection[averia]

    \starttypescript [\s!serif] [averia,averiaserif] [\s!name]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [\s!file:\typescripttwo-regular]    [\s!features=\s!default]
        \definefontsynonym [\s!SerifBold]       [\s!file:\typescripttwo-bold]       [\s!features=\s!default]
        \definefontsynonym [\s!SerifItalic]     [\s!file:\typescripttwo-italic]     [\s!features=\s!default]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:\typescripttwo-bolditalic] [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!serif] [averia-light,averiaserif-light] [\s!name]
        \setups[\s!font:\s!fallback:\s!serif]
        \definefontsynonym [\s!Serif]           [\s!file:\typescripttwo-light]       [\s!features=\s!default]
        \definefontsynonym [\s!SerifBold]       [\s!file:\typescripttwo-regular]     [\s!features=\s!default]
        \definefontsynonym [\s!SerifItalic]     [\s!file:\typescripttwo-lightitalic] [\s!features=\s!default]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:\typescripttwo-italic]      [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!sans] [averiasans] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]           [\s!file:averiasans-regular]    [\s!features=\s!default]
        \definefontsynonym [\s!SansBold]       [\s!file:averiasans-bold]       [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]     [\s!file:averiasans-italic]     [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic] [\s!file:averiasans-bolditalic] [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!sans] [averiasans-light] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]           [\s!file:averiasans-light]       [\s!features=\s!default]
        \definefontsynonym [\s!SansBold]       [\s!file:averiasans-regular]     [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]     [\s!file:averiasans-lightitalic] [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic] [\s!file:averiasans-italic]      [\s!features=\s!default]
    \stoptypescript

    % todo: rscale

    \starttypescript[averia]
        \definetypeface [averia] [\s!rm] [\s!serif] [averiaserif] [\s!default]
        \definetypeface [averia] [\s!ss] [\s!sans]  [averiasans]  [\s!default]
        \definetypeface [averia] [\s!tt] [\s!mono]  [dejavu]      [\s!default]
        \definetypeface [averia] [\s!mm] [\s!math]  [times]       [\s!default]
    \stoptypescript

    \starttypescript[averia-light]
        \definetypeface [averia] [\s!rm] [\s!serif] [averiaserif-light] [\s!default]
        \definetypeface [averia] [\s!ss] [\s!sans]  [averiasans-light]  [\s!default]
        \definetypeface [averia] [\s!tt] [\s!mono]  [dejavu]            [\s!default]
        \definetypeface [averia] [\s!mm] [\s!math]  [times]             [\s!default]
    \stoptypescript

\stoptypescriptcollection