504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
26 lines
939 B
Diff
26 lines
939 B
Diff
From 82e243f326aea40e7f3da935d8166979b11e8063 Mon Sep 17 00:00:00 2001
|
|
From: Nick Cao <nickcao@nichi.co>
|
|
Date: Tue, 21 Mar 2023 15:48:49 +0800
|
|
Subject: [PATCH 04/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
|
|
|