How to Implement Custom Fonts using Downloadable Google Fonts?

A step-by-step guide to implementing custom font by downloading (instead of manually copying) Google fonts and using them in your Jetpack Compose app.

Vincent Tsen
2 min readMar 31


Roboto is the default font used by Material 3. However, we often want to change it for our app. Instead of manually copying the font asset, you can now download the Google font asynchronously and use them in your Jetpack Compose app.

This is a quick guide to changing the default Roboto font to Arvo font.

1. Add the dependency

build.gradle.kts example

dependencies {

2. Copy font_cert.xml

Copy the font-cert.xml to your res\values folder.

3. Create Font Provider

In Type.kt, create the GoogleFont.Provider:

private val fontProvider = GoogleFont.Provider(
providerAuthority = "",
providerPackage = "",
certificates = R.array.com_google_android_gms_fonts_certs

4. Create Google Font

Search the Google Font that you would like to use here. In this example, we’re going to use Arvo font.

Not all fonts are supported, so you need to try them by yourself. If the font is not supported, it reverts to Roboto font.

In Type.kt, create the GoogleFont:

private val googleFont = GoogleFont("Arvo")

5. Create Font Family

In Type.kt, create the FontFamily:

private val fontFamily = FontFamily(
Font(googleFont = googleFont, fontProvider = fontProvider)

6. Override the Typography



Vincent Tsen