Consider monospace font as plain text

This commit is contained in:
M66B
2024-02-04 09:48:34 +01:00
parent 570cf61d82
commit a9009f73e9
2 changed files with 18 additions and 8 deletions

View File

@@ -894,6 +894,12 @@ public class HtmlHelper {
if (!text_font)
continue;
if (!TextUtils.isEmpty(value)) {
List<String> faces = StyleHelper.getTypeFaces(value);
if (faces.contains("monospace"))
element.attr("x-plain", "true");
}
// https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
sb.append(key).append(":").append(value).append(";");
break;