mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-01 22:25:26 +02:00
misc: add NotoColorEmoji TTF for GNU/Linux
The default application font (Ubuntu) should not define emoji glyphs. GitLab: #896 Change-Id: I8af496e2a3fe68ebca829d53b1d9c0a302ce2101
This commit is contained in:
parent
68c3e3ea18
commit
b8b0cb87f0
2 changed files with 6 additions and 2 deletions
BIN
resources/fonts/NotoColorEmoji.ttf
Normal file
BIN
resources/fonts/NotoColorEmoji.ttf
Normal file
Binary file not shown.
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue