mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 03:15:39 +01:00
Added multi-byte wingdings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user