-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Add ultrabold pairs for font weight #24948
Conversation
Just curious, does it work in Fabric (without the fix)?
Does it sufficient? Why should we parse the font name in the first place? |
🤔 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? 🤔 |
Do you mean inconsistency between how iOS interprets the fonts and how classic RN does it? Or which kind of inconsistency? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's ship it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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`. 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
Summary
Add
ultrabold
map of font weight, if not,ultrabold
would 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>