Debian Codegraph @

texmf-dist/doc/fonts/pennstander-otf/pennstander-otf-samples-text.tex

raw
1 % !TEX root = pennstander-otf-samples-text.tex
2
3 \usetypescriptfile[pennstander]
4
5 \setupbodyfont[dejavu]
6
7 \definefontfamily[dejavu][rm][DejaVu Serif]
8
9
10 \setuppagenumbering[state=stop]
11
12 \setuphead
13 [title]
14 [style=\dejavu,align=middle]
15
16
17 \setuphead
18 [section]
19 [style=\dejavu,number=no,align=middle]
20
21 \def\fontlist{pennstander-thin,pennstander-regular,pennstander-bold}
22 \definefontfeature[ss01][ss01=yes]
23 \definefontfeature[ss02][ss02=yes]
24 \definefontfeature[ss03][ss01=yes]
25 \definefontfeature[ss03][ss03=yes]
26 \definefontfeature[ss04][ss04=yes]
27 \definefontfeature[ss05][ss05=yes]
28 \definefontfeature[ss06][ss06=yes]
29 \definefontfeature[ss07][ss07=yes]
30
31 \definefontfeature[ss20][ss20=yes]
32 \definefontfeature[rand][rand=random]
33 \definefontfeature[dlig][dlig=yes]
34
35 \startbuffer[wehold]
36 {\it We hold these truths to be self-evident}: That the human body is not a machine, and even machines require downtime; that sleep is not laziness but the nightly maintenance cycle upon which memory, mood, and judgment all depend; and that a culture which glorifies exhaustion as ambition has confused suffering for virtue.
37 \stopbuffer
38 \starttext
39 \title[title=Pennstander Text (v0.4)]
40 \section[title=Weights]
41
42 \doloopoverlist{pennstander-thin,pennstander-extralight,pennstander-light,pennstander-regular,pennstander-medium,pennstander-semibold,pennstander-extrabold,pennstander-black}{
43 \recursestring \crlf {\switchtobodyfont[\recursestring]{\getbuffer[wehold]\blank[10pt]}}
44 }
45
46 \section[title=Discretionary Ligatures]
47 \addfeature[dlig]
48 {\switchtobodyfont[pennstander-regular] BB CC DD EE FF GG LL MM NN OO PP RR SS TT bb cc dd ee fa ff ffi ffl fi fl ft fifl gg ll mm nn oo pp rr ss ti tt tu tw
49 \blank[10pt]
50 \getbuffer[wehold]}
51
52
53
54 \section[title=Alternates]
55
56
57 {\switchtobodyfont[dejavu]{ss01}}: {\switchtobodyfont[pennstander-regular] \addfeature[ss01] I a g}\crlf
58 {\switchtobodyfont[dejavu]{ss02}}: {\switchtobodyfont[pennstander-regular] \addfeature[ss02] A M N Q V W Z v z}\crlf
59 {\switchtobodyfont[dejavu]{ss03}}: {\switchtobodyfont[pennstander-regular] \addfeature[ss03] 4 ¼ ¾}\crlf
60 {\switchtobodyfont[dejavu]{ss04}}: {\switchtobodyfont[pennstander-regular] \addfeature[ss04] l t}\crlf
61 {\switchtobodyfont[dejavu]{ss06}}: {\switchtobodyfont[pennstander-regular] \addfeature[ss06] &}\crlf
62 {\switchtobodyfont[dejavu]{ss07}}: {\switchtobodyfont[pennstander-regular] \addfeature[ss07] 7 ⅞}
63
64 %zeros, fractions, ordinals, different types of figures, accented characters
65
66 \section[title=ss20: Extra flair]
67 \subtractfeature[dlig]
68 \addfeature[ss20]
69 {\switchtobodyfont[pennstander-regular] \getbuffer[wehold]}
70 \section[title=rand: Randoms]
71 \subtractfeature[ss20]
72 \addfeature[rand]
73 {\switchtobodyfont[pennstander-regular] \getbuffer[wehold]}
74 %\showfont[pennstander-thin][all]
75 \stoptext