Skip to content

Commit

Permalink
fix(android): fix some edge case font names
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed May 8, 2020
1 parent a8f6d28 commit 7c0bcff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public static SpannableStringBuilder stringBuilderFromHtmlString(Context context
style = split[1];
}
Typeface typeface = createTypeface(context, fontFolder, fontFamily,
style.equals("bold") ? "bold" : "normal", style.equals("bold"), style.equals("italic"));
(style != null) && style.equals("bold") ? "bold" : "normal", (style != null) && style.equals("bold"), (style != null) && style.equals("italic"));

if (typeface == null) {
typeface = Typeface.create(fontFamily, Typeface.NORMAL);
Expand Down

0 comments on commit 7c0bcff

Please sign in to comment.