0 of 0

File information

Last updated

Original upload

Created by

hawchangJA

Uploaded by

hawchangJA

Virus scan

Safe to use

3 comments

  1. Jieyang013
    Jieyang013
    • member
    • 1 kudos
    Hello, I'm translating Mark Books As Read to Chinese, and I encountered the same "?" problem like you, can you explain to me in english that how to solve this problem?  I'm sorry that my Japanese is very poor and I can't fully understand the results of the translation software that translated your description. XD
    1. hawchangJA
      hawchangJA
      • supporter
      • 15 kudos
      Hi Jieyang013.

      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).
    2. Jieyang013
      Jieyang013
      • member
      • 1 kudos
      Thank you! You are a life saver to me. With your explanation and the Issue you submitted on Github, I finally understand why.

      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!