MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / PushFont

Method PushFont

lib/imgui/imgui.cpp:6181–6189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6179}
6180
6181void ImGui::PushFont(ImFont* font)
6182{
6183 ImGuiContext& g = *GImGui;
6184 if (!font)
6185 font = GetDefaultFont();
6186 SetCurrentFont(font);
6187 g.FontStack.push_back(font);
6188 g.CurrentWindow->DrawList->PushTextureID(font->ContainerAtlas->TexID);
6189}
6190
6191void ImGui::PopFont()
6192{

Callers

nothing calls this directly

Calls 3

GetDefaultFontFunction · 0.85
PushTextureIDMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected