diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-09-07 02:01:44 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:14 +0100 |
commit | 8727831de7308ee5cf202c9b20a7bbf916405b2a (patch) | |
tree | 6f8aad72909ab1079e10f4bf8d05cfa39104bada /src/Utils.cpp | |
parent | Use system colors for now (diff) | |
download | nheko-8727831de7308ee5cf202c9b20a7bbf916405b2a.tar.xz |
Fix QML emojis
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index 8c02b1c2..d458dbcc 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -40,9 +40,8 @@ utils::replaceEmoji(const QString &body) for (auto &code : utf32_string) { // TODO: Be more precise here. if (code > 9000) - fmtBody += - QString("<span style=\"font-family: " + userFontFamily + ";\">") + - QString::fromUcs4(&code, 1) + "</span>"; + fmtBody += QString("<font face=\"" + userFontFamily + "\">") + + QString::fromUcs4(&code, 1) + "</font>"; else fmtBody += QString::fromUcs4(&code, 1); } |