
Mark Book as Read - Japanese
-
Endorsements
-
Unique DLs--
-
Total DLs--
-
Total views--
-
Version1.0.0.1
- Original File
- Download:
- Manual
3 comments
To display characters correctly in bg3se, the following two requirements must be met:
- The font file contains the glyph.
- Must be included in the character range supported by IMGUI.
Strictly speaking, bg3se uses IMGUI to display characters.Due to limitations of IMGUI and DX11, there is no way to display characters by mod that cannot be displayed correctly.
If you can see the characters in in-game messages but not in bg3se/IMGUI, then the font file contains the characters.
IMGUI limits the number of glyphs it can display, and characters outside that range will display as “?”.
In East Asia, 1,000 characters is not enough, but in Europe and the United States, 200 characters is enough, so it is highly likely that this will not be supported.
Reference issue (with answer from Norbyte):
path for IMGUI Japanese font incorrect
Source of Chinese font loading part of bg3se:
bg3se/BG3Extender/Extender/Client/IMGUI/IMGUI.cpp
Both traditional and simplified Chinese use the font file NotoSerifSC-Regular.otf (same as Japanese).
If the font file in the game does not contain the glyphs, get another font file that does contain the glyphs, rename it to NotoSerifSC-Regular.otf and save it in Baldurs Gate 3\Data\Public\Game\GUI\Assets\Fonts (replacing the font file with the loose file).
If it's a glyph displayed in-game, it's not possible. Either give up or change it to a different character or phrase (it may still not display).
I think we have the same problem:
the range of
"ImGui::GetIO().Fonts->GetGlyphRangesChineseSimplifiedCommon()"
is small just as
"ImGui::GetIO().Fonts->GetGlyphRangesJapanese()"
This may be fixed by using "ImGui::GetIO().Fonts->GetGlyphRangesChineseFull()" like the traditional chinese.Maybe I will submit the issue on Github, too. All I can do now is look for replacement chinese character for “?”. XD
Thank you again!