Skip to content
Snippets Groups Projects
Commit b8b0cb87 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

misc: add NotoColorEmoji TTF for GNU/Linux

The default application font (Ubuntu) should not define emoji glyphs.

GitLab: #896
Change-Id: I8af496e2a3fe68ebca829d53b1d9c0a302ce2101
parent 68c3e3ea
No related branches found
No related tags found
No related merge requests found
File added
...@@ -326,10 +326,14 @@ MainApplication::parseArguments() ...@@ -326,10 +326,14 @@ MainApplication::parseArguments()
void void
MainApplication::setApplicationFont() MainApplication::setApplicationFont()
{ {
QStringList fontFamilies {"Ubuntu"};
#ifdef Q_OS_LINUX
QFontDatabase::addApplicationFont(":/fonts/NotoColorEmoji.ttf");
fontFamilies += "NotoColorEmoji";
#endif
QFont font; QFont font;
font.setFamily("Ubuntu"); font.setFamilies(fontFamilies);
setFont(font); setFont(font);
QFontDatabase::addApplicationFont(":/fonts/FontAwesome.otf");
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment