https://kotlinlang.org logo
#compose
Title
# compose
b

Bino

12/12/2019, 10:50 AM
Is there already any way of custom fonts eg. ttf or otf inside compose? I only found
fontStyle
and
fontFamily
but can I set a specific font for a fontFamily..?
s

Simon Schubert

12/12/2019, 12:12 PM
The Jetnews sample has a reference to
ttf
files which are stored in the
/res/font
folder: https://github.com/android/compose-samples/blob/master/JetNews/app/src/main/java/com/example/jetnews/ui/Typography.kt
👍🏻 1
b

Bino

12/12/2019, 12:22 PM
Thanks, I don’t know, how I missed that. 🎉
s

Simon Schubert

12/12/2019, 12:29 PM
No problem 🚀
5 Views