diff options
author | Dmitry Batrak <Dmitry.Batrak@jetbrains.com> | 2022-03-17 14:56:26 +0300 |
---|---|---|
committer | Dmitry Batrak <Dmitry.Batrak@jetbrains.com> | 2022-03-17 15:15:34 +0300 |
commit | debc6336c04e0db3e23da413f4e7fc47c8379912 (patch) | |
tree | c66be419883bd558b5b0ac106cd98d46ef03fa79 | |
parent | 1f93154f625898acfe78384e3979d9615a1754ad (diff) | |
download | JetBrainsRuntime-debc6336c04e0db3e23da413f4e7fc47c8379912.tar.gz |
JBR-4314 2022.1 EAP version's JBR use incorrect fallback font to render Chinese characters in macOS
(cherry picked from commit 82048d1d7362485541ac504fae1a184a133b3782)
-rw-r--r-- | src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m b/src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m index 4f1c0c35c41..1f52f1875ec 100644 --- a/src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m +++ b/src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m @@ -3371,7 +3371,7 @@ JNI_COCOA_ENTER(env); anotherBaseFont = true; } CTFontRef font = (CTFontRef)nsFont; - CFArrayRef codes = CFLocaleCopyISOLanguageCodes(); + CFArrayRef codes = CFLocaleCopyPreferredLanguages(); CFArrayRef fds = CTFontCopyDefaultCascadeListForLanguages(font, codes); CFRelease(codes); |