Open s-chernomorets opened 3 years ago
Annoyingly, this affects web too, even though web definitely supports font-feature-settings
. It seems that the SVG itself is getting fontFeatureSettings
set directly as a prop, rather than setting font-feature-settings
in the style like e.g. font-family
and font-size
are.
As for iOS, it seems the support was never implemented: https://github.com/software-mansion/react-native-svg/pull/430#issuecomment-325512705
Web issue should be fixed with https://github.com/software-mansion/react-native-svg/pull/2463. @msand It appears you wrote a lot of the iOS code, would you have any idea where to start to make this work on iOS too?
Bug
\<Text> with fontFeatureSettings={'case 1'} works on Android, but doesn't work on iOS. The font that I am using is SF Pro Rounded, and this setting is useful to align symbols to the middle of digits.
Behavior with fontFeatureSettings={'case 1'} on Android
Behavior without fontFeatureSettings={'case 1'} on Android
Behavior on iOS
Environment info
Run
react-native info
in your terminal and copy the results here. Also, include the precise version number of this library that you are using in the projectReact native info output:
Library version: 12.1.1
Steps To Reproduce