mirror of
https://github.com/ocornut/imgui.git
synced 2026-04-01 21:17:42 -05:00
Demo: Add a "Fonts" section for visibility.
This commit is contained in:
@@ -1745,6 +1745,7 @@ static void DemoWindowWidgetsFonts()
|
||||
{
|
||||
ImFontAtlas* atlas = ImGui::GetIO().Fonts;
|
||||
ImGui::ShowFontAtlas(atlas);
|
||||
// FIXME-NEWATLAS: Provide a demo to add/create a procedural font?
|
||||
ImGui::TreePop();
|
||||
}
|
||||
}
|
||||
@@ -8171,9 +8172,6 @@ void ImGui::ShowAboutWindow(bool* p_open)
|
||||
// - ShowStyleEditor()
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
// Forward declare ShowFontAtlas() which isn't worth putting in public API yet
|
||||
namespace ImGui { IMGUI_API void ShowFontAtlas(ImFontAtlas* atlas); }
|
||||
|
||||
// Demo helper function to select among loaded fonts.
|
||||
// Here we use the regular BeginCombo()/EndCombo() api which is the more flexible one.
|
||||
void ImGui::ShowFontSelector(const char* label)
|
||||
|
||||
Reference in New Issue
Block a user