mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 11:59:21 +01:00
Set the complete Japanese glyph range.(from JIS X 0208)
This commit is contained in:
parent
3fe162aebf
commit
11e5537146
2 changed files with 535 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue