Use dynamically sized ImGui fonts

This commit is contained in:
Dan Paulat 2025-08-27 23:43:11 -05:00
parent dc96e3e3ad
commit c82b9753c6
12 changed files with 89 additions and 88 deletions

View file

@ -34,7 +34,7 @@ void ImGui::DrawTooltip(const std::string& hoverText)
if (::ImGui::BeginTooltip())
{
::ImGui::PushFont(tooltipFont->font(), 0.0f);
::ImGui::PushFont(tooltipFont.first->font(), tooltipFont.second.value());
::ImGui::TextUnformatted(hoverText.c_str());
::ImGui::PopFont();
::ImGui::EndTooltip();