Created
April 29, 2021 12:14
-
-
Save cicerohellmann/57dee4502f1e80b26f28e5a6ad592425 to your computer and use it in GitHub Desktop.
Adding an external font to your project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml | |
class FontFamily { | |
companion object { | |
val robotoFamily = FontFamily( | |
Font(R.font.roboto_bold, FontWeight.Bold), | |
Font(R.font.roboto_medium, FontWeight.Medium) | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment