|
|
@ -40,9 +40,8 @@ utils::replaceEmoji(const QString &body) |
|
|
|
for (auto &code : utf32_string) { |
|
|
|
for (auto &code : utf32_string) { |
|
|
|
// TODO: Be more precise here.
|
|
|
|
// TODO: Be more precise here.
|
|
|
|
if (code > 9000) |
|
|
|
if (code > 9000) |
|
|
|
fmtBody += |
|
|
|
fmtBody += QString("<font face=\"" + userFontFamily + "\">") + |
|
|
|
QString("<span style=\"font-family: " + userFontFamily + ";\">") + |
|
|
|
QString::fromUcs4(&code, 1) + "</font>"; |
|
|
|
QString::fromUcs4(&code, 1) + "</span>"; |
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
fmtBody += QString::fromUcs4(&code, 1); |
|
|
|
fmtBody += QString::fromUcs4(&code, 1); |
|
|
|
} |
|
|
|
} |
|
|
|