1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Added multi-byte wingdings

This commit is contained in:
M66B 2022-07-16 10:55:20 +02:00
parent 097bf29908
commit 86267a654f

View file

@ -3225,13 +3225,12 @@ public class HtmlHelper {
break;
case "font-family":
if ("wingdings".equalsIgnoreCase(value)) {
for (int i = start; i < ssb.length(); i++) {
for (int i = ssb.length() - 1; i >= start; i--) {
int kar = ssb.charAt(i);
if (kar >= 0x20 && kar < 0x20 + WINGDING_TO_UNICODE.length) {
int codepoint = WINGDING_TO_UNICODE[kar - 0x20];
String replacement = new String(Character.toChars(codepoint));
if (replacement.length() == 1)
ssb.replace(i, i + 1, replacement);
ssb.replace(i, i + 1, replacement);
}
}
} else