Skip to content

Commit

Permalink
Merge pull request nuttyartist#641 from nuttyartist/add-icon-fonts
Browse files Browse the repository at this point in the history
Add loading of FontAwesome icon fonts
  • Loading branch information
nuttyartist committed Aug 26, 2023
2 parents 227a504 + 451f548 commit b6f648d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ int main(int argc, char *argv[])
#endif

if (QFontDatabase::addApplicationFont(":/fonts/fontawesome/fa-solid-900.ttf") < 0)
qWarning() << "FontAwesome cannot be loaded !";
qWarning() << "FontAwesome Solid cannot be loaded !";

if (QFontDatabase::addApplicationFont(":/fonts/fontawesome/fa-regular-400.ttf") < 0)
qWarning() << "FontAwesome Regular cannot be loaded !";

if (QFontDatabase::addApplicationFont(":/fonts/fontawesome/fa-brands-400.ttf") < 0)
qWarning() << "FontAwesome Brands cannot be loaded !";

if (QFontDatabase::addApplicationFont(":/fonts/material/material-symbols-outlined.ttf") < 0)
qWarning() << "Material Icons cannot be loaded !";
qWarning() << "Material Symbols cannot be loaded !";

// Load fonts from resources
// Roboto
Expand Down

0 comments on commit b6f648d

Please sign in to comment.