1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4export component TestCase inherits Window {
5 width: 64px;
6 height: 64px;
7 VerticalLayout {
8 Text {
9 text: "Hello Everyone";
10 wrap: word-wrap;
11 color: green;
12 font-size: 10px;
13 }
14 Text {
15 // note: j has negative bearing
16 text: "jello";
17 color: #abcd;
18 opacity: 0.9;
19 font-size: 10px;
20 font-weight: 700;
21 horizontal-alignment: center;
22 }
23 Text {
24 text: "Everyone";
25 font-size: 10px;
26 width: 100%;
27 horizontal-alignment: right;
28 font-italic: true;
29 }
30 }
31
32 // Issue #7936
33 Text {
34 text: "s";
35 font-size: 256px;
36 color: red;
37 opacity: 0.1;
38 }
39}
40