summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-09-24 11:51:07 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-09-28 08:59:51 +0000
commit8d445e6c73f2fe981eb8da0e647d21cca1ba4fc2 (patch)
tree64642949ec3528b4f7fffe1208d8d3f1d53ae93f /src/gui
parent3461faa9cda3626cb7e2b5caad1a9f85c2ef748c (diff)
Use Yu Gothic UI as the main fallback font for Japanese
Using MS Gothic UI as the fallback on Japanese locale has been outdated for many years. The default font on Japanese is Yu Gothic UI, and this caused mismatches between Japanese text when using the fallback and when just relying on the default. [ChangeLog][Text] Made the primary fallback font on Japanese locale "Yu Gothic UI" (the default system font). Fixes: QTBUG-96689 Change-Id: I9cf34410619ff4a2ceb9b03d523018c5061c3634 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 416fbfa5a017406535a62a503411039d7a17c844) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/text/windows/qwindowsfontdatabasebase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/windows/qwindowsfontdatabasebase.cpp b/src/gui/text/windows/qwindowsfontdatabasebase.cpp
index 81042c1284..6b6558792f 100644
--- a/src/gui/text/windows/qwindowsfontdatabasebase.cpp
+++ b/src/gui/text/windows/qwindowsfontdatabasebase.cpp
@@ -883,6 +883,7 @@ static const char *other_tryFonts[] = {
};
static const char *jp_tryFonts [] = {
+ "Yu Gothic UI",
"MS UI Gothic",
"Arial",
"Gulim",