I ended up using Calligraphy
build.gradle:
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
An example of applying the font assets/font/fancyfont.otf
to the operation `GuidedStepFragment:
LoginActivity.kt:
class LoginActivity : Activity() {
override fun attachBaseContext(newBase: Context?) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase))
}
}
styles.xml:
<style name="LoginActivityTheme" parent="@style/Theme.Leanback.GuidedStep">
<item name="guidanceTitleStyle">@style/Login.TitleStyle</item>
</style>
<style name="Login.TitleStyle" parent="Widget.Leanback.GuidanceTitleStyle">
<item name="fontPath">font/fancy_font.otf</item>
</style>
AndroidManifest.xml:
<activity android:name=".LoginActivity"
android:theme="@style/LoginActivityTheme"/>