Join Slack
Powered by
hey guys, in M3 for compose for TypoGraphy there’s...
# compose
f
FunkyMuse
04/02/2023, 10:32 AM
hey guys, in M3 for compose for TypoGraphy there’s a missing
Copy code
defaultFontFamily = MyCustomFont
how do I set the default, is there any way?
s
Stylianos Gakis
04/02/2023, 10:49 AM
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1653402991681799
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1639568918174500?thread_ts=1639471166.105600&cid=CJLTWPH7S
No, just set it for each one separately for m3, like
this
.
j
Joel Denke
04/02/2023, 2:10 PM
You could override LocalTextStyle is closest to default can get. I would however recommend wrap MaterialTheme with your own doing so.
8
Views
Open in Slack
Previous
Next