Skip to content

Commit

Permalink
Pass on SubwidgetContainer's font to its container
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualYT31 authored and texus committed Sep 1, 2023
1 parent 58ece04 commit 23e4477
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SubwidgetContainer.cpp
Expand Up @@ -225,6 +225,12 @@ namespace tgui
}

Widget::rendererChanged(property);

// Make sure to pass on the SubwidgetContainer's font to the internal container
if (property == U"Font")
{
m_container->setInheritedFont(m_fontCached);
}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 23e4477

Please sign in to comment.