MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / pushFont

Function pushFont

TheForceEngine/TFE_Editor/editor.cpp:1012–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010 }
1011
1012 void pushFont(FontType type)
1013 {
1014 if (type == FONT_LARGE)
1015 {
1016 ImGui::PushFont(s_fontLarge);
1017 }
1018 else
1019 {
1020 const s32 index = fontScaleToIndex(s_editorConfig.fontScale);
1021 ImFont** fonts = &s_fonts[type * FONT_SIZE_COUNT];
1022 ImGui::PushFont(fonts[index]);
1023 }
1024 }
1025
1026 void popFont()
1027 {

Callers 15

messageBoxUiFunction · 0.85
menuFunction · 0.85
level_newLevelUiFunction · 0.85
project_exportUiFunction · 0.85
project_editUiFunction · 0.85
historyViewFunction · 0.85
configUiFunction · 0.85
resources_uiFunction · 0.85
updateFunction · 0.85
levelLightingFunction · 0.85
editor_infEditFunction · 0.85
textureSourcesUIFunction · 0.85

Calls 1

fontScaleToIndexFunction · 0.85

Tested by 1

testOptionsFunction · 0.68