Skip to content

Commit

Permalink
Don't load FA for fonts more than 20px
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed Jul 12, 2024
1 parent cf5a92f commit e6e974b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GWToolboxdll/Utils/FontLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ namespace {
cfg.MergeMode = false;
for (const auto& font : GetFontData()) {
void* data = font.data;
if (size > 20.f && fontawesome5_compressed_data == data)
continue; // Don't load FA over 20px
size_t data_size = font.data_size;

if (!font.font_name.empty()) {
Expand Down

0 comments on commit e6e974b

Please sign in to comment.