Rene GensAuthorBlogGitHubLinkedIn

Custom fonts everywhere

20 April, 2018

Recently we got custom fonts on Android. So an easy to way to change all the fonts is inside the style.xml, for example if the defined font is this

android:fontFamily="@font/montserrat_medium"

We would use it like this:

<style name="TextViewStyle" parent="android:Widget.TextView"> 
    <item name="android:fontFamily">@font/montserrat\_regular</item> 
</style>

Thanks for reading! Check out more posts on the blog if you'd like.

© 2025, Built with Gatsby