Set the complete Japanese glyph range.(from JIS X 0208)

This commit is contained in:
marime 2020-05-27 12:17:20 +09:00
parent 3fe162aebf
commit 11e5537146
2 changed files with 535 additions and 1 deletions

View file

@ -272,7 +272,10 @@ namespace Dalamud.Interface
fontConfig.PixelSnapH = true;
var fontPathJp = Path.Combine(this.dalamud.StartInfo.WorkingDirectory, "UIRes", "NotoSansCJKjp-Medium.otf");
DefaultFont = ImGui.GetIO().Fonts.AddFontFromFileTTF(fontPathJp, 17.0f, null, ImGui.GetIO().Fonts.GetGlyphRangesJapanese());
var japaneseRangeHandle = GlyphRangesJapanese.GetRangeHandle();
DefaultFont = ImGui.GetIO().Fonts.AddFontFromFileTTF(fontPathJp, 17.0f, null, japaneseRangeHandle.AddrOfPinnedObject());
var fontPathGame = Path.Combine(this.dalamud.StartInfo.WorkingDirectory, "UIRes", "gamesym.ttf");