fontResource

Functions summary

Typeface

This function is deprecated. Prefer to preload fonts using FontFamily.Resolver.

Functions

fontResource

@Composable
fun fontResource(fontFamily: FontFamily): Typeface

Synchronously load an font from FontFamily.

Parameters
fontFamily: FontFamily

the fontFamily

Returns
Typeface

the decoded image data associated with the resource