From 9cd5e7d2d02d48e1cd9221afe1059e91d187e5d5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Feb 2022 12:18:29 +0100 Subject: [PATCH] Use getTypefaceSpan --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 5168fc2147..fc0adfedce 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -3031,7 +3031,7 @@ public class HtmlHelper { case "font": String face = element.attr("face"); if (!TextUtils.isEmpty(face)) - setSpan(ssb, new TypefaceSpan(face), start, ssb.length()); + setSpan(ssb, StyleHelper.getTypefaceSpan(face, context), start, ssb.length()); break; case "h1": case "h2": @@ -3142,7 +3142,7 @@ public class HtmlHelper { break; case "pre": // Signature - setSpan(ssb, new TypefaceSpan("monospace"), start, ssb.length()); + setSpan(ssb, StyleHelper.getTypefaceSpan("monospace", context), start, ssb.length()); break; case "style": // signatures @@ -3204,7 +3204,7 @@ public class HtmlHelper { if (monospaced_pre && "true".equals(element.attr("x-plain"))) - setSpan(ssb, new TypefaceSpan("monospace"), start, ssb.length()); + setSpan(ssb, StyleHelper.getTypefaceSpan("monospace", context), start, ssb.length()); } catch (Throwable ex) { Log.e(ex); }