Skip to content

Commit cc240c3

Browse files
committed
Use specific font
1 parent ad017cc commit cc240c3

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ jobs:
4848
QT_QPA_PLATFORM=xcb xvfb-run --auto-servernum npm run test-ci
4949
# QT_DEBUG_PLUGINS=1 QT_QPA_PLATFORM=xcb xvfb-run --auto-servernum node test/debug.js
5050
51-
# - name: Pack Screenshots
52-
# if: matrix.os == 'ubuntu-22.04' && steps.e2e-test.outcome == 'failure'
53-
# run: cd test/__diff__ && tar -czf ../__diff__.gz *
54-
5551
- uses: actions/upload-artifact@v4
5652
if: matrix.os == 'ubuntu-22.04'
5753
with:

__screenshots__/ui.png

907 Bytes
Loading

test/OpenSans-Regular.ttf

212 KB
Binary file not shown.

test/test.qml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Rectangle {
55

66
color: 'yellow'
77

8+
FontLoader {
9+
id: _regular
10+
source: "./OpenSans-Regular.ttf"
11+
}
12+
813
Item {
914
objectName: 'obj1'
1015
property var prop1: 'value1'
@@ -22,6 +27,9 @@ Rectangle {
2227

2328
Text {
2429
text: 'Hello World!'
30+
font.family: _regular.name
31+
font.weight: Font.Normal
32+
font.pixelSize: 20
2533
}
2634
}
2735
}

0 commit comments

Comments
 (0)