1
2
3
4
5
6
7
8
9
10
11
12
13\unprotect
14
15\starttypescriptcollection[uprightonly]
16
17\starttypescript [\s!serif,\s!sans,\s!mono] [uprightonly]
18 \definefontsynonym [\typescriptprefix\typescriptone\s!Italic] [\typescriptprefix\typescriptone]
19 \definefontsynonym [\typescriptprefix\typescriptone\s!Slanted] [\typescriptprefix\typescriptone]
20 \definefontsynonym [\typescriptprefix\typescriptone\s!Bold] [\typescriptprefix\typescriptone]
21 \definefontsynonym [\typescriptprefix\typescriptone\s!BoldItalic] [\typescriptprefix\typescriptone]
22 \definefontsynonym [\typescriptprefix\typescriptone\s!BoldSlanted][\typescriptprefix\typescriptone]
23\stoptypescript
24
25\starttypescript [uprightonly]
26 \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone]
27 \definetypeface [\typescriptone] [\s!ss] [\s!sans] [\typescriptone]
28 \definetypeface [\typescriptone] [\s!tt] [\s!mono] [\typescriptone]
29 \definetypeface [\typescriptone] [\s!mm] [\s!math] [\globalfontclass]
30\stoptypescript
31
32\stoptypescriptcollection
33
34\protect
35
36\continueifinputfile{typeimpuprightonly.mkiv}
37
38\usetypescriptfile[uprightonly]
39\setupbodyfont[pagella]
40
41\starttext
42
43\startbuffer
44xxx {\bf yyy} xxx {\it zzz} xxx \im{x = 1}
45\stopbuffer
46
47\getbuffer
48
49\start \switchtobodyfont[uprightonly]
50\getbuffer
51\stop
52
53\getbuffer
54
55\stoptext
56 |