mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Fonts: removed size rounding in AddFont() which breaks relative sizing of merged fonts (8502)
# Conflicts: # imgui.cpp
This commit is contained in:
parent
2de15dc64b
commit
168b97c291
3 changed files with 13 additions and 7 deletions
|
|
@ -3111,6 +3111,7 @@ namespace ImGui
|
|||
// Fonts, drawing
|
||||
IMGUI_API void SetCurrentFont(ImFont* font, float font_size);
|
||||
IMGUI_API void UpdateCurrentFontSize();
|
||||
inline float GetRoundedFontSize(float size) { return IM_ROUND(size); }
|
||||
inline ImFont* GetDefaultFont() { ImGuiContext& g = *GImGui; return g.IO.FontDefault ? g.IO.FontDefault : g.IO.Fonts->Fonts[0]; }
|
||||
IMGUI_API void PushPasswordFont();
|
||||
IMGUI_API void PopPasswordFont();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue