-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add font-variation-settings
feature for variable fonts
#829
Comments
Just ran into this today. The font weights for variable font with Raleway for example work even now (but on android you need to add a according font.xml). But when using Material Symbols the font weight just won't work on iOS. My only assumption is because I would actually need to set the font-variation-settings. And this is even more painful when you try to use properties like fill etc which have no equivalent in classic css props. |
cc @matinzd @davebcn87 @necolas I noticed the 2 linked pr do not have any recent activity, and wondering if there are open concerns and the best way forward.
We are currently discussing about forking React Native vs Implementing a Fabric Component to replace |
Introduction
Variable fonts support in React Native is currently limited compared to native iOS/Android and web platforms. While React Native supports variable fonts, it lacks fine-grained control over font variations that designers and developers need.
Web platforms use
font-variation-settings
to specify custom font characteristics, enabling:Details
Both iOS and Android platforms natively support variable font features. We propose exposing these capabilities through React Native's Text component API, matching the CSS implementation pattern.
We've created proof-of-concept implementations for both iOS and Android, supporting both old (Paper) and new (Fabric) architectures.
Implementation examples
Key Features:
Screenshots
Discussion points
The text was updated successfully, but these errors were encountered: