fromAsset

fun PublicationStyleFontFace.Companion.fromAsset(family: String, fontStretch: String? = null, fontStyle: String? = null, fontWeight: String? = null, mediaType: MediaType, assetPath: String): PublicationStyleFontFace

Creates a PublicationStyleFontFace using an asset font file.

Provide the path to your font file in your assets folder. For example "fonts/myfont.ttf".