mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 12:40:06 +08:00
Revert "Replace Noto Color Emoji with Twitter Color Emoji"
This reverts commit 7c98ac9592.
This commit is contained in:
parent
808c4f31a9
commit
f98c77eb1e
@ -223,11 +223,7 @@ set(PROJECT_SOURCES
|
||||
)
|
||||
|
||||
if (NOT APPLE AND Qt6_VERSION VERSION_GREATER_EQUAL 6.9.0)
|
||||
if (WIN32)
|
||||
list(APPEND PROJECT_SOURCES res/EmojiFontWin.qrc)
|
||||
else ()
|
||||
list(APPEND PROJECT_SOURCES res/EmojiFontLin.qrc)
|
||||
endif ()
|
||||
list(APPEND PROJECT_SOURCES res/EmojiFont.qrc)
|
||||
endif ()
|
||||
|
||||
# Qt exe
|
||||
|
||||
5
res/EmojiFont.qrc
Normal file
5
res/EmojiFont.qrc
Normal file
@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/font">
|
||||
<file alias="notoEmoji">font/NotoColorEmoji.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/font">
|
||||
<file alias="emojiFont">font/TwemojiMozilla.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/font">
|
||||
<file alias="emojiFont">font/seguiemj.ttf</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
BIN
res/font/NotoColorEmoji.ttf
Normal file
BIN
res/font/NotoColorEmoji.ttf
Normal file
Binary file not shown.
Binary file not shown.
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/emojiFont");
|
||||
int fontId = QFontDatabase::addApplicationFont(":/font/notoEmoji");
|
||||
if (fontId >= 0)
|
||||
{
|
||||
QStringList fontFamilies = QFontDatabase::applicationFontFamilies(fontId);
|
||||
QFontDatabase::setApplicationEmojiFontFamilies(fontFamilies);
|
||||
} else
|
||||
{
|
||||
qDebug() << "could not load emoji font!";
|
||||
qDebug() << "could not load noto font!";
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user