summaryrefslogtreecommitdiffstats
path: root/tests/text-benchmark-fonts-textnode.qml
blob: 3ddc052f39b15176b805509d681112fff86d81e3 (plain)
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
import QtQuick 2.0

Rectangle {
    width: 640
    height: 480
    id: main

    Text {
        id: regularText
        text: "Regular text (Arial, 1 pt)"
        font.family: "Arial"
        font.pointSize: 1

    }

   Text {
        id: regularText2
        anchors.top: regularText.bottom
        text: "Regular text (Arial, 2 pt)"
        font.pointSize: 2

        font.family: "Arial"
    }
   Text {
        id: regularText3
        anchors.top: regularText2.bottom
        text: "Regular text (Arial, 3 pt)"
        font.pointSize: 3
        font.family: "Arial"

    }
   Text {
        id: regularText4
        anchors.top: regularText3.bottom
        text: "Regular text (Arial, 4 pt)"
        font.pointSize: 4
        font.family: "Arial"

    }

   Text {
        id: regularText5
        anchors.top: regularText4.bottom
        text: "Regular text (Arial, 5 pt)"
        font.pointSize: 5
        font.family: "Arial"

    }

   Text {
        id: regularText6
        anchors.top: regularText5.bottom
        text: "Regular text (Arial, 6 pt)"
        font.pointSize: 6
        font.family: "Arial"

    }

   Text {
        id: regularText7
        anchors.top: regularText6.bottom
        text: "Regular text (Arial, 7 pt)"
        font.pointSize: 7
        font.family: "Arial"

    }

   Text {
        id: regularText8
        anchors.top: regularText7.bottom
        text: "Regular text (Arial, 8 pt)"
        font.pointSize: 8
        font.family: "Arial"

    }

   Text {
        id: regularText9
        anchors.top: regularText8.bottom
        text: "Regular text (Arial, 9 pt)"
        font.pointSize: 9
        font.family: "Arial"

    }

   Text {
        id: regularText10
        anchors.top: regularText9.bottom
        text: "Regular text (Arial, 10 pt)"
        font.pointSize: 10
        font.family: "Arial"

    }

   Text {
        id: regularText11
        anchors.top: regularText10.bottom
        text: "Regular text (Arial, 11 pt)"
        font.pointSize: 11
        font.family: "Arial"

    }

   Text {
        id: regularText12
        anchors.top: regularText11.bottom
        text: "Regular text (Arial, 12 pt)"
        font.pointSize: 12
        font.family: "Arial"

    }

   Text {
        id: regularText13
        anchors.top: regularText12.bottom
        text: "Regular text (Arial, 13 pt)"
        font.pointSize: 13
        font.family: "Arial"

    }

   Text {
        id: regularText14
        anchors.top: regularText13.bottom
        text: "Regular text (Arial, 14 pt)"
        font.pointSize: 14
        font.family: "Arial"

    }

   Text {
        id: regularText15
        anchors.top: regularText14.bottom
        text: "Regular text (Arial, 15 pt)"
        font.pointSize: 15
        font.family: "Arial"

    }
   Text {
        id: regularText16
        anchors.top: regularText15.bottom
        text: "Regular text (Arial, 16 pt)"
        font.pointSize: 16
        font.family: "Arial"

    }
   Text {
        id: regularText16_and_a_half
        anchors.top: regularText16.bottom
        text: "Regular text (Arial, 17 pt)"
        font.pointSize: 17
        font.family: "Arial"

    }

   Text {
        id: regularText17
        anchors.top: regularText16_and_a_half.bottom
        text: "Regular text (Times New Roman, 1 pt)"
        font.pointSize: 1
        font.family: "Times New Roman"

    }
   Text {
        id: regularText18
        anchors.top: regularText17.bottom
        text: "Regular text (Times New Roman, 2 pt)"
        font.pointSize: 2
        font.family: "Times New Roman"

    }
   Text {
        id: regularText19
        anchors.top: regularText18.bottom
        text: "Regular text (Times New Roman, 3 pt)"
        font.pointSize: 3
        font.family: "Times New Roman"

    }
   Text {
        id: regularText20
        anchors.top: regularText19.bottom
        text: "Regular text (Times New Roman, 4 pt)"
        font.pointSize: 4
        font.family: "Times New Roman"

    }

   Text {
        id: regularText21
        anchors.top: regularText20.bottom
        text: "Regular text (Times New Roman, 5 pt)"
        font.pointSize: 5
        font.family: "Times New Roman"

    }

   Text {
        id: regularText22
        anchors.top: regularText21.bottom
        text: "Regular text (Times New Roman, 6 pt)"
        font.pointSize: 6
        font.family: "Times New Roman"

    }
   Text {
        id: regularText23
        anchors.top: regularText22.bottom
        text: "Regular text (Times New Roman, 7 pt)"
        font.pointSize: 7
        font.family: "Times New Roman"

    }
   Text {
        id: regularText24
        anchors.top: regularText23.bottom
        text: "Regular text (Times New Roman, 8 pt)"
        font.pointSize: 8
        font.family: "Times New Roman"

    }
   Text {
        id: regularText25
        anchors.top: regularText24.bottom
        text: "Regular text (Times New Roman, 9 pt)"
        font.pointSize: 9
        font.family: "Times New Roman"

    }
   Text {
        id: regularText26
        anchors.top: regularText25.bottom
        text: "Regular text (Times New Roman, 10 pt)"
        font.pointSize: 10
        font.family: "Times New Roman"

    }
   Text {
        id: regularText27
        anchors.top: regularText26.bottom
        text: "Regular text (Times New Roman, 11 pt)"
        font.pointSize: 11
        font.family: "Times New Roman"

    }
   Text {
        id: regularText28
        anchors.top: regularText27.bottom
        text: "Regular text (Times New Roman, 12 pt)"
        font.pointSize: 12
        font.family: "Times New Roman"

    }
   Text {
        id: regularText29
        anchors.top: regularText28.bottom
        text: "Regular text (Times New Roman, 13 pt)"
        font.pointSize: 13
        font.family: "Times New Roman"

    }

   Text {
        id: regularText30
        anchors.top: regularText29.bottom
        text: "Regular text (Times New Roman, 14 pt)"
        font.pointSize: 14
        font.family: "Times New Roman"

    }
   Text {
        id: regularText31
        anchors.top: regularText30.bottom
        text: "Regular text (Times New Roman, 15 pt)"
        font.pointSize: 15
        font.family: "Times New Roman"

    }

   Text {
        id: regularText32
        anchors.top: regularText31.bottom
        text: "Regular text (Times New Roman, 16 pt)"
        font.pointSize: 16
        font.family: "Times New Roman"

    }

   Text {
        id: regularText33
        anchors.top: regularText32.bottom
        text: "Regular text (Times New Roman, 17 pt)"
        font.pointSize: 17
        font.family: "Times New Roman"

    }

   SequentialAnimation on y {
           loops: Animation.Infinite
           NumberAnimation { to: 200 - main.height; easing.type: Easing.OutBounce; duration: 2000 }
           NumberAnimation { to: 0; easing.type: Easing.OutQuad; duration: 1000 }
       }

}