summarylogtreecommitdiffstats
path: root/demibold.patch
diff options
context:
space:
mode:
authorAllen Wild2018-12-11 19:56:03 -0500
committerAllen Wild2018-12-11 19:56:03 -0500
commitb5d628f93fd3b516ca954eafaacd301318721849 (patch)
tree3479f7a624a7ae78de4616e75c82f512527294db /demibold.patch
parentd3442c7a0546a029b83efa0964417194c86864af (diff)
downloadaur-b5d628f93fd3b516ca954eafaacd301318721849.tar.gz
update to 1.5.1-1, sync with [community]
Diffstat (limited to 'demibold.patch')
-rw-r--r--demibold.patch27
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);