blob: c94043709e00727ab92eb97a8781ce2c294541e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|