forked from typekit/fvd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.yml
107 lines (84 loc) · 1.85 KB
/
parser.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# This file describes a set of test cases for parsing a Font Variation
# Description into a hash.
tests:
# font-style
- description: "n4"
fvd: "n4"
output:
font-style: normal
font-weight: "400"
- description: "i4"
fvd: "i4"
output:
font-style: italic
font-weight: "400"
- description: "o4"
fvd: "o4"
output:
font-style: oblique
font-weight: "400"
# font-weight
- description: "n1"
fvd: "n1"
output:
font-style: normal
font-weight: "100"
- description: "n2"
fvd: "n2"
output:
font-style: normal
font-weight: "200"
- description: "n3"
fvd: "n3"
output:
font-style: normal
font-weight: "300"
- description: "n4"
fvd: "n4"
output:
font-style: normal
font-weight: "400"
- description: "n5"
fvd: "n5"
output:
font-style: normal
font-weight: "500"
- description: "n6"
fvd: "n6"
output:
font-style: normal
font-weight: "600"
- description: "n7"
fvd: "n7"
output:
font-style: normal
font-weight: "700"
- description: "n8"
fvd: "n8"
output:
font-style: normal
font-weight: "800"
- description: "n9"
fvd: "n9"
output:
font-style: normal
font-weight: "900"
# invalid description
- description: "'' is null because it's empty"
fvd: ""
output: ~
- description: "'x0' is null because the style is invalid"
fvd: "x0"
output: ~
- description: "'n0' is null because the weight is invalid"
fvd: "n0"
output: ~
- description: "'n' is null because there is only one input"
fvd: "n"
output: ~
- description: "'1' is null because there is only one input"
fvd: "1"
output: ~
- description: "'n1x' is null because there are more than two inputs"
fvd: "n1x"
output: ~