Last active
January 21, 2020 10:04
-
-
Save davidmigloz/b76ee83f184e866b2a7f4308c45a092f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import uk.co.chrisjenx.calligraphy.CalligraphyConfig; | |
| // ... | |
| private fun initCustomFonts() { | |
| CalligraphyConfig.initDefault(CalligraphyConfig.Builder() | |
| .setDefaultFontPath("fonts/Roboto-RobotoRegular.ttf") | |
| .setFontAttrId(R.attr.fontPath) | |
| .build() | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment