Replies: 1 comment
-
This is done via useTypeface(): const skfheader = useTypeface(require('../../assets/fonts/arial.ttf'));
const headerFont = Skia.Font(skfheader, HEADER_TEXT_SIZE);
const normalFont = Skia.Font(skfheader, NORMAL_TEXT_SIZE); |
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
-
Hi, currently I use multiple useFont() to create font foreach text but it have the same font style (
arial.tff
orinter.ttf
) base on interface theme.It makes me have to create many different
useFonts()
for each title, header, description, note. Is there a way for me to use a single useFont and specify the font-size for each tag?Beta Was this translation helpful? Give feedback.
All reactions