diff options
author | Dmitry Porunov | 2019-11-11 04:39:37 +0400 |
---|---|---|
committer | Dmitry Porunov | 2019-11-11 04:39:37 +0400 |
commit | a93d8b49fc77c1086164cd349fede66e08003f9d (patch) | |
tree | 9fb49f97fdf1fc2a2b7222fd42e1ab1fe4577454 /Revert-Disable-DemiBold-fallback-for-Semibold.patch | |
parent | 9abda47ab98590c8e869e52abb24d19ab1d1df36 (diff) | |
download | aur-a93d8b49fc77c1086164cd349fede66e08003f9d.tar.gz |
Release k1.1
Diffstat (limited to 'Revert-Disable-DemiBold-fallback-for-Semibold.patch')
-rw-r--r-- | Revert-Disable-DemiBold-fallback-for-Semibold.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Revert-Disable-DemiBold-fallback-for-Semibold.patch b/Revert-Disable-DemiBold-fallback-for-Semibold.patch new file mode 100644 index 000000000000..c94043709e00 --- /dev/null +++ b/Revert-Disable-DemiBold-fallback-for-Semibold.patch @@ -0,0 +1,30 @@ +From b7effa2fd838afc049ec5cc00df3bd0810a95da4 Mon Sep 17 00:00:00 2001 +From: Jiachen YANG <farseerfc@gmail.com> +Date: Fri, 4 Oct 2019 16:59:26 +0900 +Subject: [PATCH 3/6] Revert "Disable DemiBold fallback for Semibold." + +This reverts commit 310c68a744ae8163c96b88944d96a6f6b14b3cdf. +--- + Telegram/SourceFiles/ui/style/style_core_font.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Telegram/SourceFiles/ui/style/style_core_font.cpp b/Telegram/SourceFiles/ui/style/style_core_font.cpp +index 653dbfff0..22ccfea7e 100644 +--- a/Telegram/SourceFiles/ui/style/style_core_font.cpp ++++ b/Telegram/SourceFiles/ui/style/style_core_font.cpp +@@ -161,9 +161,9 @@ FontData::FontData(int size, uint32 flags, int family, Font *other) + + f.setPixelSize(size); + if (_flags & FontBold) { +- f.setBold(true); +- //} else if (fontFamilies[family] == "Open Sans Semibold") { +- // f.setWeight(QFont::DemiBold); ++ f.setBold(_flags & FontBold); ++ } else if (fontFamilies[family] == "Open Sans Semibold") { ++ f.setWeight(QFont::DemiBold); + } + f.setItalic(_flags & FontItalic); + f.setUnderline(_flags & FontUnderline); +-- +2.23.0 + |