b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
26 lines
939 B
Diff
26 lines
939 B
Diff
From 880fe5653a86d8091f3f577977f8af93552c48fd Mon Sep 17 00:00:00 2001
|
|
From: Nick Cao <nickcao@nichi.co>
|
|
Date: Tue, 21 Mar 2023 15:48:49 +0800
|
|
Subject: [PATCH 05/11] qtbase: 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 474644b871f..c7a117fd134 100644
|
|
--- a/src/gui/text/unix/qfontconfigdatabase.cpp
|
|
+++ b/src/gui/text/unix/qfontconfigdatabase.cpp
|
|
@@ -556,6 +556,7 @@ void QFontconfigDatabase::populateFontDatabase()
|
|
FcObjectSetAdd(os, *p);
|
|
++p;
|
|
}
|
|
+ FcPatternAddBool(pattern, FC_VARIABLE, FcFalse);
|
|
fonts = FcFontList(nullptr, pattern, os);
|
|
FcObjectSetDestroy(os);
|
|
FcPatternDestroy(pattern);
|
|
--
|
|
2.42.0
|
|
|