Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only find closest font if system font was not found (#32482)
Summary: Before f951da9 finding a system font used to return early. In order to allow variants, the referenced patch removed the early return so that variants could be applied later. However, there is no need to find the closest font as we already selected the proper system font. This also fixes a bug with setting a custom font handler via RCTSetDefaultFontHandler whos return could get overwritten by the closest font search. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [iOS] [Fixed] - Respect RCTSetDefaultFontHandler chosen font Pull Request resolved: #32482 Reviewed By: ShikaSD Differential Revision: D33844138 Pulled By: cortinico fbshipit-source-id: 05c01fc358cd19f8be342218cdba944b303073ed
- Loading branch information