Skip to content

Commit

Permalink
Support for DemiBold alias of SemiBold
Browse files Browse the repository at this point in the history
For more information see [this post](https://www.quora.com/What-is-the-difference-between-Medium-Demi-and-Semibold-fonts).

DemiBold is fairly common in font naming, and React Native lacks support of "AvNext-DemiBold" for example.
  • Loading branch information
wildseansy committed Sep 7, 2017
1 parent 1e8f3b1 commit 7ba4d71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions React/Views/RCTFont.mm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static RCTFontWeight weightOfFont(UIFont *font)
@"regular",
@"medium",
@"semibold",
@"demibold",
@"bold",
@"heavy",
@"black"
Expand All @@ -62,6 +63,7 @@ static RCTFontWeight weightOfFont(UIFont *font)
@(UIFontWeightRegular),
@(UIFontWeightMedium),
@(UIFontWeightSemibold),
@(UIFontWeightSemibold),
@(UIFontWeightBold),
@(UIFontWeightHeavy),
@(UIFontWeightBlack)
Expand Down

0 comments on commit 7ba4d71

Please sign in to comment.