From 2e92fefe6ec8561238c8a4273be888bb7aa1a7be Mon Sep 17 00:00:00 2001
From: j1nx <p.steenbergen@j1nx.nl>
Date: Thu, 15 Apr 2021 15:06:04 +0200
Subject: [PATCH] Fix font scaling issues

---
 .../package/mycroft-service/mycroft-gui.service               | 1 +
 .../rootfs-overlay/home/mycroft/.config/qt5ct/qt5ct.conf      | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/buildroot-external/package/mycroft-service/mycroft-gui.service b/buildroot-external/package/mycroft-service/mycroft-gui.service
index 16daab42..2070e5df 100644
--- a/buildroot-external/package/mycroft-service/mycroft-gui.service
+++ b/buildroot-external/package/mycroft-service/mycroft-gui.service
@@ -13,6 +13,7 @@ Environment=QT_PLUGIN_PATH=/usr/lib/qt/plugins:/usr/lib/plugins:/usr/lib/plugins
 Environment=QT_QUICK_CONTROLS_CONF=/home/mycroft/.config/qtquickcontrols2material.conf
 Environment=QT_LOGGING_RULES='*=false'
 Environment=QT_FILE_SELECTORS=ovos
+Environment=QT_FONT_DPI=120
 Environment=XDG_RUNTIME_DIR=/tmp/mycroft
 Environment=XDG_DATA_DIRS=/usr/share:/usr/local/share:$XDG_DATA_DIRS
 Environment=XDG_CURRENT_DESKTOP=kde
diff --git a/buildroot-external/rootfs-overlay/home/mycroft/.config/qt5ct/qt5ct.conf b/buildroot-external/rootfs-overlay/home/mycroft/.config/qt5ct/qt5ct.conf
index eacb5b3f..4f21320c 100644
--- a/buildroot-external/rootfs-overlay/home/mycroft/.config/qt5ct/qt5ct.conf
+++ b/buildroot-external/rootfs-overlay/home/mycroft/.config/qt5ct/qt5ct.conf
@@ -6,8 +6,8 @@ standard_dialogs=default
 style=Fusion
 
 [Fonts]
-fixed=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
-general=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
+fixed="@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@,\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0K\x10)"
+general="@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@,\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0K\x10)"
 
 [Interface]
 activate_item_on_single_click=1