-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qt6.qtbase: add patch to fix handling of variable fonts
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
pkgs/development/libraries/qt-6/patches/qtbase-variable-fonts.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 9ba9c690fb16188ff524b53def104e68e45cf5c3 Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <nickcao@nichi.co> | ||
Date: Tue, 21 Mar 2023 15:48:49 +0800 | ||
Subject: [PATCH] Deal with a font face at index 0 as Regular for Variable | ||
fonts | ||
|
||
Reference: https://bugreports.qt.io/browse/QTBUG-111994 | ||
--- | ||
src/gui/text/unix/qfontconfigdatabase.cpp | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/gui/text/unix/qfontconfigdatabase.cpp b/src/gui/text/unix/qfontconfigdatabase.cpp | ||
index 9b60cf2963..5a42ef6a68 100644 | ||
--- a/src/gui/text/unix/qfontconfigdatabase.cpp | ||
+++ b/src/gui/text/unix/qfontconfigdatabase.cpp | ||
@@ -554,6 +554,7 @@ void QFontconfigDatabase::populateFontDatabase() | ||
FcObjectSetAdd(os, *p); | ||
++p; | ||
} | ||
+ FcPatternAddBool(pattern, FC_VARIABLE, FcFalse); | ||
fonts = FcFontList(nullptr, pattern, os); | ||
FcObjectSetDestroy(os); | ||
FcPatternDestroy(pattern); | ||
-- | ||
2.39.2 | ||
|