Always keep all AXIS fonts in memory

This commit is contained in:
Soreepeong 2022-03-07 14:41:55 +09:00
parent 14dfbf7bcf
commit f5c75e4cd5
2 changed files with 32 additions and 16 deletions

View file

@ -245,6 +245,7 @@ namespace Dalamud.Interface.Internal.Windows
this.specialGlyphRequests[entry.Name] = fontHandle = Service<InterfaceManager>.Get().NewFontSizeRef(TargetFontSizePx, entry.Name);
ImGui.PushFont(fontHandle.Font);
ImGui.SetWindowFontScale(TargetFontSizePx / fontHandle.Size);
var scale = ImGui.GetIO().FontGlobalScale;