-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeatures.fea
47 lines (38 loc) · 1.07 KB
/
features.fea
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
languagesystem DFLT dflt;
# single substitution: stylistic alternates
feature salt {
substitute a by a.alt;
substitute g by g.alt;
} salt;
# ligature substitution
feature liga {
sub f f i by f_f_i;
sub f f l by f_f_l;
sub f i by f_i;
sub f l by f_l;
} liga;
# glyph classes for numerators, denominators, fractions
@digits = [zero one two three four five six seven eight nine];
@numerators = [zero.numr one.numr two.numr three.numr four.numr five.numr six.numr seven.numr eight.numr nine.numr];
@denominators = [zero.dnom one.dnom two.dnom three.dnom four.dnom five.dnom six.dnom seven.dnom eight.dnom nine.dnom];
feature numr {
sub @digits by @numerators;
} numr;
feature dnom {
sub @digits by @denominators;
} dnom;
feature frac {
sub slash by fraction;
sub @digits' fraction by @numerators;
sub fraction @digits' by @denominators;
} frac;
# kerning: position feature
feature kern {
position A V -40;
position A Y -40;
position L T -20;
position T a -80;
position T o -80;
position g j 40;
# VERY incomplete!
} kern;