Uh oh!
There was an error while loading. Please reload this page.
[iOS] Add ultrabold pairs for font weight - #24948
Conversation
shergin
commented
May 19, 2019
Just curious, does it work in Fabric (without the fix)? Does it sufficient? Why should we parse the font name in the first place? |
zhongwuzw
commented
May 20, 2019
🤔 After we fixes #24966, it works in this case.
From the discussion in #15162, seems it's not sufficient, because there has inconsistency for some fonts to parse weight, so we parse the font name in the first place. Should we also add that in Fabric? 🤔 |
shergin
commented
May 20, 2019
Do you mean inconsistency between how iOS interprets the fonts and how classic RN does it? Or which kind of inconsistency? |
zhongwuzw
commented
May 21, 2019
facebook-github-bot
left a comment
There was a problem hiding this comment.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
react-native-bot
commented
May 31, 2019
This pull request was successfully merged by @zhongwuzw in 9d0d7b6. When will my fix make it into a release? | Upcoming Releases |
Summary: Add `ultrabold` map of font weight, if not, `ultrabold` would map to `bold`. Fixesreact#23512. ## Changelog [iOS] [Fixed] - Add ultrabold pairs for font weight Pull Request resolved: react#24948 Differential Revision: D15575568 Pulled By: cpojer fbshipit-source-id: 5d1d6a033c166d91a330526ba8996ac0416f3887
Summary
Add
ultraboldmap of font weight, if not,ultraboldwould map tobold.Fixes#23512.
Changelog
[iOS] [Fixed] - Add ultrabold pairs for font weight
Test Plan
After:
<Text style={{fontFamily: 'GillSans-UltraBold'}}>Hello</Text><Text style={{fontFamily: 'GillSans-Bold'}}>Hello</Text>Before:
<Text style={{fontFamily: 'GillSans-UltraBold'}}>Hello</Text><Text style={{fontFamily: 'GillSans-Bold'}}>Hello</Text>