You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Non-standard font weights (e.g., 450 between regular and medium)
Custom axes defined by font designers
Standard variation axes (weight, width, slant, etc.)
Symbol font variations (fill, optical size, etc.)
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
Custom Font Weights
<Textstyle={{fontFamily: 'Inter',fontVariationSettings: '"wght" 850'}}>
Extra Bold Text
</Text>
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: