diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-14 19:59:23 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-14 19:59:23 +0800 |
commit | 225f2812fcd87b217405a97fbd7f0d5f45192e84 (patch) | |
tree | e614994b3575861b171e3bdfc7f6b7d4e0235932 /HomeDefault.ui.qml | |
parent | 530462f93360d0d4dd1b5c813dd742dced18fc3a (diff) |
Some use embedded Roboto
Diffstat (limited to 'HomeDefault.ui.qml')
-rw-r--r-- | HomeDefault.ui.qml | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/HomeDefault.ui.qml b/HomeDefault.ui.qml index d580aa0..018c0a9 100644 --- a/HomeDefault.ui.qml +++ b/HomeDefault.ui.qml @@ -6,6 +6,11 @@ Flickable { property alias header: header property alias counter: counter property alias popular: popular + property bool doesntEmbed: Qt.platform.os === "android" + || Qt.platform.os === "linux" + || Qt.platform.os === "osx" + || Qt.platform.os === "unix" + || Qt.platform.os === "windows" contentHeight: body.height ColumnLayout { @@ -52,8 +57,16 @@ Flickable { horizontalAlignment: Text.AlignHCenter wrapMode: Text.Wrap Layout.fillWidth: true - font.family: heebo.name - font.pixelSize: 24 + font { + family: heebo.name + pixelSize: 24 + } + } + + FontLoader { + id: roboto + source: doesntEmbed ? "" + : "Roboto/Roboto-Medium.ttf" } Label { @@ -62,8 +75,12 @@ Flickable { horizontalAlignment: Text.AlignHCenter wrapMode: Text.Wrap Layout.fillWidth: true - font.family: "Roboto" - font.pixelSize: 19 + font { + family: doesntEmbed + ? "Roboto" + : roboto.name + pixelSize: 19 + } } } |