mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
Merge pull request #1617 from Soreepeong/fix/ifontatlas-defaultfont
Set ImGui default font upon default font atlas update
This commit is contained in:
commit
11c1b4658b
1 changed files with 8 additions and 5 deletions
|
|
@ -717,6 +717,12 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
// Fill missing glyphs in MonoFont from DefaultFont
|
||||
tk.CopyGlyphsAcrossFonts(this.defaultFontHandle.ImFont, this.monoFontHandle.ImFont, true);
|
||||
|
||||
// Update default font
|
||||
unsafe
|
||||
{
|
||||
ImGui.GetIO().NativePtr->FontDefault = this.defaultFontHandle.ImFont;
|
||||
}
|
||||
|
||||
// Broadcast to auto-rebuilding instances
|
||||
this.AfterBuildFonts?.Invoke();
|
||||
});
|
||||
|
|
@ -889,11 +895,8 @@ internal class InterfaceManager : IDisposable, IServiceType
|
|||
|
||||
if (this.IsDispatchingEvents)
|
||||
{
|
||||
using (this.defaultFontHandle?.Push())
|
||||
{
|
||||
this.Draw?.Invoke();
|
||||
Service<NotificationManager>.Get().Draw();
|
||||
}
|
||||
this.Draw?.Invoke();
|
||||
Service<NotificationManager>.Get().Draw();
|
||||
}
|
||||
|
||||
ImGuiManagedAsserts.ReportProblems("Dalamud Core", snap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue