From 0718520f3649c9ebaf54c02961811fa94a9ac2c0 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 12 Nov 2018 12:54:27 +0400 Subject: [PATCH] Disable default fallback to Segoe UI. Fixes #5368. --- Telegram/SourceFiles/ui/twidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/twidget.cpp b/Telegram/SourceFiles/ui/twidget.cpp index d9b57cb3b6..0ccc63ed52 100644 --- a/Telegram/SourceFiles/ui/twidget.cpp +++ b/Telegram/SourceFiles/ui/twidget.cpp @@ -91,8 +91,11 @@ void Start() { LOG(("Fonts Info: Using Segoe UI Semibold instead of Open Sans Semibold.")); } } - QFont::insertSubstitution(qsl("Open Sans"), qsl("Segoe UI")); - QFont::insertSubstitution(qsl("Open Sans Semibold"), qsl("Segoe UI Semibold")); + // Disable default fallbacks to Segoe UI, see: + // https://github.com/telegramdesktop/tdesktop/issues/5368 + // + //QFont::insertSubstitution(qsl("Open Sans"), qsl("Segoe UI")); + //QFont::insertSubstitution(qsl("Open Sans Semibold"), qsl("Segoe UI Semibold")); #elif defined Q_OS_MAC // Q_OS_WIN auto list = QStringList(); list.append(qsl(".SF NS Text"));