Skip to content

Commit

Permalink
add fallback UserFont
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaGW2 committed Apr 27, 2024
1 parent c15814d commit 318e5ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GUI/GUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ namespace GUI
std::string strFont = (Path::D_GW2_ADDONS / "arcdps" / "arcdps_font.ttf").string();
UserFont = io.Fonts->AddFontFromFileTTF(strFont.c_str(), FontSize, nullptr, ranges.Data);
}
else
{
UserFont = io.Fonts->AddFontDefault();
}

/* add default font */
MonospaceFont = io.Fonts->AddFontDefault();
Expand Down

0 comments on commit 318e5ff

Please sign in to comment.