forked from typekit/fvd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compact.yml
128 lines (99 loc) · 2.6 KB
/
compact.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This file describes a set of test cases for creating a Font Variation
# Description from @font-face descriptors.
tests:
- description: An empty font-face description
fontface: ""
fvd: "n4"
# font-style
- description: "font-style: normal becomes n"
fontface: |
font-style: normal;
fvd: "n4"
- description: "font-style: italic becomes i"
fontface: |
font-style: italic;
fvd: "i4"
- description: "font-style: oblique becomes o"
fontface: |
font-style: oblique;
fvd: "o4"
- description: "unknown font-style becomes n"
fontface: |
font-style: other;
fvd: "n4"
# font-weight
- description: "font-weight: normal becomes 4"
fontface: |
font-weight: normal;
fvd: "n4"
- description: "font-weight: bold becomes 7"
fontface: |
font-weight: bold;
fvd: "n7"
- description: "font-weight: 100 becomes 1"
fontface: |
font-weight: 100;
fvd: "n1"
- description: "font-weight: 200 becomes 2"
fontface: |
font-weight: 200;
fvd: "n2"
- description: "font-weight: 300 becomes 3"
fontface: |
font-weight: 300;
fvd: "n3"
- description: "font-weight: 400 becomes 4"
fontface: |
font-weight: 400;
fvd: "n4"
- description: "font-weight: 500 becomes 5"
fontface: |
font-weight: 500;
fvd: "n5"
- description: "font-weight: 600 becomes 6"
fontface: |
font-weight: 600;
fvd: "n6"
- description: "font-weight: 700 becomes 7"
fontface: |
font-weight: 700;
fvd: "n7"
- description: "font-weight: 800 becomes 8"
fontface: |
font-weight: 800;
fvd: "n8"
- description: "font-weight: 900 becomes 9"
fontface: |
font-weight: 900;
fvd: "n9"
- description: "font-weight: 1000 becomes 4"
fontface: |
font-weight: 1000;
fvd: "n4"
- description: "font-weight: 150 becomes 4"
fontface: |
font-weight: 150;
fvd: "n4"
# combinations
- description: "When all properties are defined"
fontface: |
font-style: italic;
font-weight: bold;
fvd: "i7"
# string parsing
- description: "When the font-face description has extraneous spaces"
fontface: |
font-style: italic ;
font-weight : bold;
fvd: "i7"
- description: When the font-face description lacks whitespace
fontface: |
font-style:italic;font-weight:bold;
fvd: "i7"
- description: When the font-face description contains unhandled properties
fontface: |
src: url(/font.otf);
font-style:italic;
font-stretch:condensed;
font-weight:bold;
fvd: "i7"