From 0da8730faecbef3bd6a884848d62b2acc2d00e63 Mon Sep 17 00:00:00 2001 From: EliadOArias <2144359102@qq.com> Date: Sat, 18 Jan 2025 22:33:45 +0800 Subject: [PATCH 1/2] swap AddGlyphRangesFromCLDRForZH_HANS and AddGlyphRangesFromCLDRForZH_HANS --- src/cata_imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cata_imgui.cpp b/src/cata_imgui.cpp index 269e84c42f06d..eeafa588ec38d 100644 --- a/src/cata_imgui.cpp +++ b/src/cata_imgui.cpp @@ -345,7 +345,7 @@ static void AddGlyphRangesFromCLDR( ImFontGlyphRangesBuilder *b, const std::stri } else if( lang == "uk_UA" ) { AddGlyphRangesFromCLDRForUK_UA( b ); } else if( lang == "zh_CN" ) { - AddGlyphRangesFromCLDRForZH_HANT( b ); + AddGlyphRangesFromCLDRForZH_HANS( b ); } else if( lang == "zh_TW" ) { AddGlyphRangesFromCLDRForZH_HANS( b ); } From e82471a30bc2b7d02c3bb0b86a3bdcfeb0ad4708 Mon Sep 17 00:00:00 2001 From: EliadOArias <2144359102@qq.com> Date: Sat, 18 Jan 2025 22:43:45 +0800 Subject: [PATCH 2/2] Swap. --- src/cata_imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cata_imgui.cpp b/src/cata_imgui.cpp index eeafa588ec38d..820bd0f410a19 100644 --- a/src/cata_imgui.cpp +++ b/src/cata_imgui.cpp @@ -347,7 +347,7 @@ static void AddGlyphRangesFromCLDR( ImFontGlyphRangesBuilder *b, const std::stri } else if( lang == "zh_CN" ) { AddGlyphRangesFromCLDRForZH_HANS( b ); } else if( lang == "zh_TW" ) { - AddGlyphRangesFromCLDRForZH_HANS( b ); + AddGlyphRangesFromCLDRForZH_HANT( b ); } // NOLINTEND(bugprone-branch-clone) }