From 875a21e5790a034847db50cd2ca51970f739afd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 13 Feb 2023 11:14:28 +0800 Subject: When not embedding font, don't search --- GridCardItem.ui.qml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'GridCardItem.ui.qml') diff --git a/GridCardItem.ui.qml b/GridCardItem.ui.qml index 346b3c6..2bfa20d 100644 --- a/GridCardItem.ui.qml +++ b/GridCardItem.ui.qml @@ -17,6 +17,11 @@ Item { property alias imageArea: imageArea property alias titleArea: titleArea // property string textTruncateText: "Rooms oh fully taken by worse do. Points afraid but may end afraid but.." + property bool doesntEmbed: Qt.platform.os == "android" + || Qt.platform.os == "linux" + || Qt.platform.os == "osx" + || Qt.platform.os == "unix" + || Qt.platform.os == "windows" DropShadow { source: rectangle @@ -94,7 +99,8 @@ Item { FontLoader { id: roboto name: "Roboto" - source: "Roboto/Roboto-Regular.ttf" + source: doesntEmbed ? "" + : "Roboto/Roboto-Regular.ttf" } Label { @@ -102,16 +108,7 @@ Item { text: badgeText color: badgeColor font { - family: Qt.platform.os - == "android" || - Qt.platform.os - == "linux" || - Qt.platform.os - == "osx" || - Qt.platform.os - == "unix" || - Qt.platform.os - == "windows" + family: doesntEmbed ? "Roboto" : roboto.name pixelSize: 13 -- cgit v1.2.3