Skip to content

Commit

Permalink
default weight Typeface.NORMAL
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Jun 12, 2020
1 parent 5b792ff commit 3c24b95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static Typeface applyStyles(

int newStyle = oldStyle;
boolean italic = false;
if(weight == UNSET) weight = 400;
if(weight == UNSET) weight = Typeface.NORMAL;
if(style == Typeface.ITALIC) italic = true;
if (weight == Typeface.BOLD) {
newStyle = (newStyle == Typeface.ITALIC) ? Typeface.BOLD_ITALIC : Typeface.BOLD;
Expand Down

0 comments on commit 3c24b95

Please sign in to comment.