A bit more of sensible defaults

(cherry picked from commit 14dfbf7bcf)
This commit is contained in:
Soreepeong 2022-03-07 14:14:30 +09:00
parent 1f20b3c35a
commit cbc0896fad
2 changed files with 5 additions and 1 deletions

View file

@ -292,7 +292,6 @@ namespace Dalamud.Interface.GameFonts
fontConfig.PixelSnapH = true;
var io = ImGui.GetIO();
io.Fonts.TexDesiredWidth = 4096;
this.glyphRectIds.Clear();
this.fonts.Clear();

View file

@ -604,6 +604,7 @@ namespace Dalamud.Interface.Internal
this.fontBuildSignal.Reset();
ioFonts.Clear();
ioFonts.TexDesiredWidth = 4096;
ImFontConfigPtr fontConfig = ImGuiNative.ImFontConfig_ImFontConfig();
fontConfig.OversampleH = 1;
@ -658,6 +659,10 @@ namespace Dalamud.Interface.Internal
List<Tuple<ushort, ushort>> codepointRanges = new();
codepointRanges.Add(Tuple.Create(Fallback1Codepoint, Fallback1Codepoint));
codepointRanges.Add(Tuple.Create(Fallback2Codepoint, Fallback2Codepoint));
// ImGui default ellipsis characters
codepointRanges.Add(Tuple.Create<ushort, ushort>(0x2026, 0x2026));
codepointRanges.Add(Tuple.Create<ushort, ushort>(0x0085, 0x0085));
foreach (var request in requests)
{