Replies: 1 comment
-
You can get width of string/char using the
But you need to store size of each character |
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
-
I need to use a non-monospaced Font. (Montserrat)
Using an array of
<Text>
, and each<Text>
presents a single character to construct a String and this is drawn on a Canvas area. So that each<Text>
(single char) is separately animatable.But, since the non-monospaced font has a different character width, this is causing alignment issues on horizontal axis.
const font = useFont(require('@assets/fonts/Montserrat.ttf'), fontSize);
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions