| 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 | |
| 4 | // This test imports a custom font and declares it for use, to ensure at least that the generated init code for |
| 5 | // the custom font setup compiles. |
| 6 | |
| 7 | import "../../../demos/printerdemo/ui/fonts/NotoSans-Regular.ttf" ; |
| 8 | import "../../../demos/printerdemo/ui/fonts/NotoSans-Bold.ttf" ; |
| 9 | |
| 10 | |
| 11 | TestCase := Window { |
| 12 | preferred-width: 100phx; |
| 13 | preferred-height: 100phx; |
| 14 | default-font-family: "Noto Sans" ; |
| 15 | } |
| 16 | |
| 17 | /* |
| 18 | ```rust |
| 19 | let _instance = TestCase::new().unwrap(); |
| 20 | ``` |
| 21 | |
| 22 | ```cpp |
| 23 | auto handle = TestCase::create(); |
| 24 | ``` |
| 25 | |
| 26 | ```js |
| 27 | var instance = new slint.TestCase({}); |
| 28 | ``` |
| 29 | */ |
| 30 | |