summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/main.cpp6
-rw-r--r--gui/main.qml4
2 files changed, 3 insertions, 7 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index 581aedd..c9750bd 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -56,12 +56,6 @@ int main(int argc, char **argv) {
Backend backend;
- const int fontId = QFontDatabase::addApplicationFont(":/resources/fonts/Roboto-Regular.ttf");
- if (fontId == -1)
- qWarning() << "Failed to add Roboto as app font";
- else
- qDebug() << QFontDatabase::applicationFontFamilies(fontId);
-
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setApplicationVersion(backend.getVersion());
QApplication app(argc, argv);
diff --git a/gui/main.qml b/gui/main.qml
index a3a0922..d9cbec4 100644
--- a/gui/main.qml
+++ b/gui/main.qml
@@ -168,10 +168,12 @@ ApplicationWindow {
Component.onCompleted: {
loader.source = "components/Splash.qml"
+ // XXX workaround for custom font not working in osx
+ /*
if (Qt.platform.os === "osx") {
- // XXX workaround for custom font not working in osx
root.font.family = robotoFont.name
root.font.weight = Font.Light
}
+ */
}
}