Skip to content

Commit

Permalink
Add ultrabold pairs for font weight (facebook#24948)
Browse files Browse the repository at this point in the history
Summary:
Add `ultrabold` map of font weight, if not, `ultrabold` would map to `bold`.
Fixes facebook#23512.

## Changelog

[iOS] [Fixed] - Add ultrabold pairs for font weight
Pull Request resolved: facebook#24948

Differential Revision: D15575568

Pulled By: cpojer

fbshipit-source-id: 5d1d6a033c166d91a330526ba8996ac0416f3887
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed May 31, 2019
1 parent 284c5f0 commit 9d0d7b6
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 @@ -32,6 +32,7 @@ static RCTFontWeight weightOfFont(UIFont *font)
@"semibold",
@"demibold",
@"extrabold",
@"ultrabold",
@"bold",
@"heavy",
@"black"
Expand All @@ -46,6 +47,7 @@ static RCTFontWeight weightOfFont(UIFont *font)
@(UIFontWeightSemibold),
@(UIFontWeightSemibold),
@(UIFontWeightHeavy),
@(UIFontWeightHeavy),
@(UIFontWeightBold),
@(UIFontWeightHeavy),
@(UIFontWeightBlack)
Expand Down

0 comments on commit 9d0d7b6

Please sign in to comment.