androidx.compose.ui.text.font
FontFamily
Sealed class · from org.jetbrains.compose.ui:ui-text:1.12.2
No hand-written docs yet.
The primary typography interface for Compose applications.
sealed class FontFamily(
canLoadSynchronously: Boolean,
)
Kinds of FontFamily
Anywhere a FontFamily is expected, you can pass any of these.
FileBasedFontFamilyui-textLoadedFontFamilyui-textSystemFontFamilyui-text
How to get one
Create it
FontFamily(fonts: List<Font>)FontFamily(fonts: Font)FontFamily(typeface: Typeface)
Ready-made values and functions that return it
Used by
Parameters that take a FontFamily.
Text(fontFamily)TextStyle.copy(fontFamily)TextStyle.merge(fontFamily)
Properties
Default
val Default: SystemFontFamily
The platform default font.
SansSerif
val SansSerif: GenericFontFamily
Font family with low contrast and plain stroke endings.
Serif
val Serif: GenericFontFamily
The formal text style for scripts.
Monospace
val Monospace: GenericFontFamily
Font family where glyphs have the same fixed width.
Cursive
val Cursive: GenericFontFamily
Cursive, hand-written like font family.
Nested types
Resolver
Library docs
The primary typography interface for Compose applications.