diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index f2a7f25decc15..cae086ac8adfc 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -2031,6 +2031,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener Typeface tf = fontTypeface; if (tf == null && familyName != null) { tf = Typeface.create(familyName, styleIndex); + } else if (tf != null && tf.getStyle() != styleIndex) { + tf = Typeface.create(tf, styleIndex); } if (tf != null) { setTypeface(tf);