From 07aafad226d2ac3a2d00f53d908f6bdb0cf059cf Mon Sep 17 00:00:00 2001
From: SeeLook <seelook@gmail.com>
Date: Mon, 10 Feb 2025 17:07:26 +0100
Subject: [PATCH] Scorek test qml

---
 spare_parts/FontTest.qml | 51 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 spare_parts/FontTest.qml

diff --git a/spare_parts/FontTest.qml b/spare_parts/FontTest.qml
new file mode 100644
index 00000000..79f05045
--- /dev/null
+++ b/spare_parts/FontTest.qml
@@ -0,0 +1,51 @@
+// pragma ComponentBehavior: Bound
+
+import QtQuick 2.15
+import QtQuick.Window 2.15
+
+Window {
+    id: mainWin
+
+    width: 1024
+    height: 768
+
+    FontLoader {
+        id: bravuraFont
+
+        source: "./Bravura.otf"
+    }
+
+    Repeater {
+        model: 5
+
+        Rectangle {
+            x: 10
+            y: 240 + (index * 20)
+            width: mainWin.width - 20
+            height: 1
+            color: "black"
+        }
+
+    }
+
+    Rectangle {
+        anchors.fill: clef
+        color: "#80aaaaaa"
+        Component.onCompleted: console.log(width, height)
+    }
+
+    Text {
+        id: clef
+
+        x: 10
+        y: 78
+        text: "\ue062"
+
+        font {
+            family: bravuraFont.name
+            pixelSize: 92
+        }
+
+    }
+
+}
-- 
GitLab