fontResource
Functions summary
Typeface |
@ComposableThis function is deprecated. Prefer to preload fonts using FontFamily.Resolver. |
Functions
fontResource
Artifact: androidx.compose.ui:ui
@Composable
funfontResource(fontFamily: FontFamily): Typeface
Synchronously load an font from FontFamily.
| Parameters | |
|---|---|
fontFamily: FontFamily |
the fontFamily |
| Returns | |
|---|---|
Typeface |
the decoded image data associated with the resource |