mirror of
https://github.com/status-im/react-native.git
synced 2025-01-25 08:48:58 +00:00
4472bb54c9
Summary: Some custom fonts don't return a UIFontWeightTrait that is representative of their actual weight. For example, "AktivGrotesk-Light" and "AktivGrotesk-Medium" both return UIFontWeightTrait 0. While this is of course an issue with the font files themselves, licensing issues can make it difficult to modify them directly. When using these fonts, specifying weights in JS has no effect. I propose that if no weight information is available, we inspect the name of the font for weighting. Closes https://github.com/facebook/react-native/pull/2113 Reviewed By: svcscm Differential Revision: D2783383 Pulled By: nicklockwood fb-gh-sync-id: 2a9caf99b6af74b7013ecc85417322b56c2dea20