diff options
| author | 2021-12-08 19:04:25 +0000 | |
|---|---|---|
| committer | 2021-12-08 19:04:25 +0000 | |
| commit | d773f2b83e6fea72460c0e9e6fd85cac493c0ab1 (patch) | |
| tree | c07900e5e3f8db162eb88fd914ef332e90ae6708 | |
| parent | fd8e9dec35953457de073972690967d89493820a (diff) | |
| parent | ab82647bacde3fb8da756c6f1b33b92c5ab99fea (diff) | |
Merge "Update font weight adjustment docs for StyleSpan"
| -rw-r--r-- | core/java/android/text/style/StyleSpan.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/text/style/StyleSpan.java b/core/java/android/text/style/StyleSpan.java index ba0ac82003ff..176a0685e19b 100644 --- a/core/java/android/text/style/StyleSpan.java +++ b/core/java/android/text/style/StyleSpan.java @@ -67,7 +67,8 @@ public class StyleSpan extends MetricAffectingSpan implements ParcelableSpan { * include bold, italic, and normal. Values are constants defined * in {@link Typeface}. * @param fontWeightAdjustment An integer describing the adjustment to be made to the font - * weight. + * weight. This is added to the value of the current weight returned by + * {@link Typeface#getWeight()}. * @see Configuration#fontWeightAdjustment This is the adjustment in text font weight * that is used to reflect the current user's preference for increasing font weight. */ @@ -123,6 +124,9 @@ public class StyleSpan extends MetricAffectingSpan implements ParcelableSpan { /** * Returns the font weight adjustment specified by this span. + * <p> + * This can be {@link Configuration#FONT_WEIGHT_ADJUSTMENT_UNDEFINED}. This is added to the + * value of the current weight returned by {@link Typeface#getWeight()}. */ public int getFontWeightAdjustment() { return mFontWeightAdjustment; |