|
@@ -15640,6 +15640,11 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
|
|
|
{
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
|
+ SeparatorText("Backend Support for Dynamic Fonts");
|
|
|
+ BeginDisabled();
|
|
|
+ CheckboxFlags("io.BackendFlags: RendererHasTextures", &GetIO().BackendFlags, ImGuiBackendFlags_RendererHasTextures);
|
|
|
+ EndDisabled();
|
|
|
+
|
|
|
SeparatorText("Fonts");
|
|
|
Text("Read ");
|
|
|
SameLine(0, 0);
|
|
@@ -16548,12 +16553,11 @@ void ImGui::DebugNodeFont(ImFont* font)
|
|
|
}
|
|
|
if (SmallButton("Set as default"))
|
|
|
GetIO().FontDefault = font;
|
|
|
- if (atlas->Fonts.Size > 1 && !atlas->Locked)
|
|
|
- {
|
|
|
- SameLine();
|
|
|
- if (SmallButton("Remove"))
|
|
|
- atlas->RemoveFont(font);
|
|
|
- }
|
|
|
+ SameLine();
|
|
|
+ BeginDisabled(atlas->Fonts.Size <= 1 || atlas->Locked);
|
|
|
+ if (SmallButton("Remove"))
|
|
|
+ atlas->RemoveFont(font);
|
|
|
+ EndDisabled();
|
|
|
|
|
|
// Display details
|
|
|
SetNextItemWidth(GetFontSize() * 8);
|