| 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 | { |