diff options
author | Allen Wild | 2018-12-11 19:56:03 -0500 |
---|---|---|
committer | Allen Wild | 2018-12-11 19:56:03 -0500 |
commit | b5d628f93fd3b516ca954eafaacd301318721849 (patch) | |
tree | 3479f7a624a7ae78de4616e75c82f512527294db /demibold.patch | |
parent | d3442c7a0546a029b83efa0964417194c86864af (diff) | |
download | aur-b5d628f93fd3b516ca954eafaacd301318721849.tar.gz |
update to 1.5.1-1, sync with [community]
Diffstat (limited to 'demibold.patch')
-rw-r--r-- | demibold.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/demibold.patch b/demibold.patch new file mode 100644 index 000000000000..e5963f577c19 --- /dev/null +++ b/demibold.patch @@ -0,0 +1,27 @@ +commit 310c68a744ae8163c96b88944d96a6f6b14b3cdf +Author: John Preston <johnprestonmail@gmail.com> +Date: Wed Dec 5 14:42:19 2018 +0400 + + Disable DemiBold fallback for Semibold. + + This reverts changes from commit 089c4ceb30. + + There were complaints that Persian font becomes unreadable :( + +diff --git a/Telegram/SourceFiles/ui/style/style_core_font.cpp b/Telegram/SourceFiles/ui/style/style_core_font.cpp +index a2ab5f89f..d268a71e1 100644 +--- a/Telegram/SourceFiles/ui/style/style_core_font.cpp ++++ b/Telegram/SourceFiles/ui/style/style_core_font.cpp +@@ -58,9 +58,9 @@ FontData::FontData(int size, uint32 flags, int family, Font *other) + + f.setPixelSize(size); + if (_flags & FontBold) { +- f.setBold(_flags & FontBold); +- } else if (fontFamilies[family] == "Open Sans Semibold") { +- f.setWeight(QFont::DemiBold); ++ f.setBold(true); ++ //} else if (fontFamilies[family] == "Open Sans Semibold") { ++ // f.setWeight(QFont::DemiBold); + } + f.setItalic(_flags & FontItalic); + f.setUnderline(_flags & FontUnderline); |