mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 10:47:28 +00:00
Added multi-byte wingdings
This commit is contained in:
parent
097bf29908
commit
86267a654f
1 changed files with 2 additions and 3 deletions
|
@ -3225,13 +3225,12 @@ public class HtmlHelper {
|
||||||
break;
|
break;
|
||||||
case "font-family":
|
case "font-family":
|
||||||
if ("wingdings".equalsIgnoreCase(value)) {
|
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);
|
int kar = ssb.charAt(i);
|
||||||
if (kar >= 0x20 && kar < 0x20 + WINGDING_TO_UNICODE.length) {
|
if (kar >= 0x20 && kar < 0x20 + WINGDING_TO_UNICODE.length) {
|
||||||
int codepoint = WINGDING_TO_UNICODE[kar - 0x20];
|
int codepoint = WINGDING_TO_UNICODE[kar - 0x20];
|
||||||
String replacement = new String(Character.toChars(codepoint));
|
String replacement = new String(Character.toChars(codepoint));
|
||||||
if (replacement.length() == 1)
|
ssb.replace(i, i + 1, replacement);
|
||||||
ssb.replace(i, i + 1, replacement);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue