Support for allowFontScaling in Text #1910
intergalacticspacehighway
started this conversation in
Ideas
Replies: 2 comments
-
This is how I think we can make it work. I haven't checked the affected areas yet. I really think we can do better. This is just to give an idea. I also tested the example. The font scaling works with this when changing the browser font settings 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
-
We can also add support for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can add support for allowFontScaling in the Text component just like React Native (iOS/Android).
This can be really helpful if we want to consider the user's preferred font settings.
We can have allowFontScaling true by default just like RN and convert px to rems just like Stylex.
For e.g.
fontSize: 10 becomes fontSize: "0.625rem". (Considering 16px as base size)
Watch this for a better explanation - https://youtu.be/9JZHodNR184?t=506
I can write a POC this weekend and share some findings. :D
Beta Was this translation helpful? Give feedback.
All reactions