mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-06 21:37:46 +00:00
Fonts: added ImFontAtlas::RemoveFont(), fixed various leaks.
This commit is contained in:
@@ -16484,6 +16484,12 @@ void ImGui::DebugNodeFont(ImFont* font)
|
||||
}
|
||||
if (SmallButton("Set as default"))
|
||||
GetIO().FontDefault = font;
|
||||
if (font->ContainerAtlas->Fonts.Size > 1 && !font->ContainerAtlas->Locked)
|
||||
{
|
||||
SameLine();
|
||||
if (SmallButton("Remove"))
|
||||
font->ContainerAtlas->RemoveFont(font);
|
||||
}
|
||||
|
||||
// Display details
|
||||
SetNextItemWidth(GetFontSize() * 8);
|
||||
|
||||
Reference in New Issue
Block a user