Added multi-byte wingdings

This commit is contained in:
M66B 2022-07-16 10:55:20 +02:00
parent 097bf29908
commit 86267a654f
1 changed files with 2 additions and 3 deletions

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