Fix QML emojis
This commit is contained in:
parent
bbbd5df75f
commit
8727831de7
4 changed files with 11 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue