-
Notifications
You must be signed in to change notification settings - Fork 24.6k
Support minimumFontScale in paragraphAttributes #50933
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
Conversation
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
Looks like we're missing the code to read from Props
into this, or to incorporate it into the math used for adjustsFontSizeToFit
? Having a field there, but never correctly populated, or used for its documented purpose, is confusing for future readers.
Can we add the other code around this?
We are using both Refer
Could you please clarify which file/code you meant the gap about? |
Some props code in react-native/packages/react-native/ReactCommon/react/renderer/attributedstring/conversions.h Line 951 in 319ba0a
others in ParagraphProps then I would expect it to be used in the paragraph component view on iOS. Can probably find that by a quick search. |
@NickGerleman I have updated it and also tested with RNW. Please refer before and after screenshots. |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This pull request was successfully merged by @anupriya13 in f53d066 When will my fix make it into a release? | How to file a pick request? |
@cipolleschi merged this pull request in f53d066. |
Summary:
Support minimumFontScale in paragraphAttributes
Resolves #50934
Changelog:
Support minimumFontScale in paragraphAttributes
Test Plan:
Tested via this code here: microsoft/react-native-windows#14617
Before:

After:

minFontScale.mp4