Composable Function

fontResource

Synchronously load an font from FontFamily.

fontResource

Deprecated

Prefer to preload fonts using FontFamily.Resolver.

Source set: Android
@Composable
@ReadOnlyComposable
fun fontResource(fontFamily: FontFamily): Typeface

Synchronously load an font from FontFamily.

Parameters

fontFamily the fontFamily

Returns

the decoded image data associated with the resource

Last updated: