Skip to content

Commit a03ec91

Browse files
committed
image test for font-variants
1 parent 3a624ab commit a03ec91

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed
86.4 KB
Loading

test/image/mocks/zz-font-variant.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"data": [
3+
{
4+
"hovertemplate": "Difficult -0.123456789 | %{text}",
5+
"texttemplate": "Difficult -0.123456789 | %{text}",
6+
"mode": "text+markers",
7+
"text": [
8+
"normal",
9+
"sub",
10+
"super",
11+
"text",
12+
"emoji",
13+
"unicode",
14+
"unicase",
15+
"titling-caps",
16+
"small-caps",
17+
"all-small-caps",
18+
"petite-caps",
19+
"all-petite-caps",
20+
"ordinal",
21+
"slashed-zero",
22+
"ruby",
23+
"contextual",
24+
"no-contextual",
25+
"common-ligatures",
26+
"no-common-ligatures",
27+
"discretionary-ligatures",
28+
"no-discretionary-ligatures",
29+
"historical-ligatures",
30+
"no-historical-ligatures",
31+
"historical-forms"
32+
],
33+
"textfont": {
34+
"family": "Inter",
35+
"size": 16,
36+
"variant": [
37+
"normal",
38+
"sub",
39+
"super",
40+
"text",
41+
"emoji",
42+
"unicode",
43+
"unicase",
44+
"titling-caps",
45+
"small-caps",
46+
"all-small-caps",
47+
"petite-caps",
48+
"all-petite-caps",
49+
"ordinal",
50+
"slashed-zero",
51+
"ruby",
52+
"contextual",
53+
"no-contextual",
54+
"common-ligatures",
55+
"no-common-ligatures",
56+
"discretionary-ligatures",
57+
"no-discretionary-ligatures",
58+
"historical-ligatures",
59+
"no-historical-ligatures",
60+
"historical-forms"
61+
]
62+
},
63+
"textposition": "right",
64+
"x": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
65+
"y": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
66+
}
67+
],
68+
"layout": {
69+
"showlegend": false,
70+
"margin": {
71+
"l": 0,
72+
"r": 0,
73+
"t": 0,
74+
"b": 0
75+
},
76+
"xaxis": {
77+
"range": [-0.25, 2.5],
78+
"showticklabels": false,
79+
"showgrid": false,
80+
"zeroline": false
81+
},
82+
"yaxis": {
83+
"range": [23.5, -0.5],
84+
"showticklabels": false,
85+
"showgrid": false,
86+
"zeroline": false
87+
},
88+
"width": 400,
89+
"height": 800,
90+
"hovermode": "closest"
91+
}
92+
}

0 commit comments

Comments
 (0)