Skip to content

Commit

Permalink
Use default* names when loading default imgui font for font categories
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenKoperczak committed Dec 31, 2024
1 parent ede4620 commit 645efc5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scwx-qt/source/scwx/qt/manager/font_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,13 @@ void FontManager::Impl::UpdateImGuiFont(types::FontCategory fontCategory)
}
else
{
family = textSettings.font_family(fontCategory).GetDefault();
styles = textSettings.font_style(fontCategory).GetDefault();
units::font_size::points<double> size {
auto defaultFamily = textSettings.font_family(fontCategory).GetDefault();
auto defaultStyles = textSettings.font_style(fontCategory).GetDefault();
units::font_size::points<double> defaultSize {
textSettings.font_point_size(fontCategory).GetValue()};
fontCategoryImguiFontMap_.insert_or_assign(
fontCategory, self_->LoadImGuiFont(family, {styles}, size));
fontCategory,
self_->LoadImGuiFont(defaultFamily, {defaultStyles}, defaultSize));
}
}

Expand Down

0 comments on commit 645efc5

Please sign in to comment.