mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Replace Noto Color Emoji with Twitter Color Emoji
This commit is contained in:
parent
f170e3f3fd
commit
7c98ac9592
@ -223,7 +223,11 @@ set(PROJECT_SOURCES
|
||||
)
|
||||
|
||||
if (NOT APPLE AND Qt6_VERSION VERSION_GREATER_EQUAL 6.9.0)
|
||||
list(APPEND PROJECT_SOURCES res/EmojiFont.qrc)
|
||||
if (WIN32)
|
||||
list(APPEND PROJECT_SOURCES res/EmojiFontWin.qrc)
|
||||
else ()
|
||||
list(APPEND PROJECT_SOURCES res/EmojiFontLin.qrc)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
# Qt exe
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/font">
|
||||
<file alias="notoEmoji">font/NotoColorEmoji.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
5
res/EmojiFontLin.qrc
Normal file
5
res/EmojiFontLin.qrc
Normal file
@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/font">
|
||||
<file alias="emojiFont">font/TwemojiMozilla.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
5
res/EmojiFontWin.qrc
Normal file
5
res/EmojiFontWin.qrc
Normal file
@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/font">
|
||||
<file alias="emojiFont">font/seguiemj.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
Binary file not shown.
BIN
res/font/TwemojiMozilla.ttf
Normal file
BIN
res/font/TwemojiMozilla.ttf
Normal file
Binary file not shown.
BIN
res/font/seguiemj.ttf
Normal file
BIN
res/font/seguiemj.ttf
Normal file
Binary file not shown.
@ -71,14 +71,14 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
#if !defined(Q_OS_MACOS) && (QT_VERSION >= QT_VERSION_CHECK(6,9,0))
|
||||
// Load the emoji fonts
|
||||
int fontId = QFontDatabase::addApplicationFont(":/font/notoEmoji");
|
||||
int fontId = QFontDatabase::addApplicationFont(":/font/emojiFont");
|
||||
if (fontId >= 0)
|
||||
{
|
||||
QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId);
|
||||
QFontDatabase::setApplicationEmojiFontFamilies(fontFamilies);
|
||||
} else
|
||||
{
|
||||
qDebug() << "could not load noto font!";
|
||||
qDebug() << "could not load emoji font!";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user