class FontOverview
Prefer the text styles (Font.title, Font.body, Font.caption…): they follow Dynamic Type. Use Font.system(size =, weight =) for a fixed size.
This is the Kotlin form of SwiftUI Font: SwiftUI documentation. In Swift it reads:
@frozen struct FontTopics
Initializers
constructor(value: Double)
Type properties
val largeTitle: Font
val subheadline: Font
val body: Font
val title: Font
val title2: Font
val title3: Font
val callout: Font
val caption: Font
val default: Font
val caption2: Font
val footnote: Font
val headline: Font
val monospaced: Font.Design
val serif: Font.Design
val default: Font.Design
val rounded: Font.Design
val loose: Font.Leading
val tight: Font.Leading
val standard: Font.Leading
val largeTitle: Font.TextStyle
val subheadline: Font.TextStyle
val body: Font.TextStyle
val title: Font.TextStyle
val title2: Font.TextStyle
val title3: Font.TextStyle
val callout: Font.TextStyle
val caption: Font.TextStyle
val caption2: Font.TextStyle
val footnote: Font.TextStyle
val headline: Font.TextStyle
val ultraLight: Font.Weight
val bold: Font.Weight
val thin: Font.Weight
val black: Font.Weight
val heavy: Font.Weight
val light: Font.Weight
val medium: Font.Weight
val regular: Font.Weight
val semibold: Font.Weight
val compressed: Font.Width
val expanded: Font.Width
val standard: Font.Width
val condensed: Font.Width
Methods
fun monospaced(): Font
fun monospaced(isActive: Boolean): Font
fun monospacedDigit(): Font
fun lowercaseSmallCaps(): Font
fun lowercaseSmallCaps(isActive: Boolean): Font
fun uppercaseSmallCaps(): Font
fun uppercaseSmallCaps(isActive: Boolean): Font
fun bold(): Font
fun bold(isActive: Boolean): Font
fun width(width: Font.Width): Font
fun italic(): Font
fun italic(isActive: Boolean): Font
fun scaled(factor: Double): Font
fun weight(weight: Font.Weight): Font
fun leading(leading: Font.Leading): Font
fun pointSize(size: Double): Font
fun smallCaps(): Font
fun smallCaps(isActive: Boolean): Font
fun custom(name: String, size: Double, relativeTo: Font.TextStyle): Font
fun custom(name: String, size: Double): Font
fun system(size: Double, weight: Font.Weight = Font.Weight.regular, design: Font.Design = Font.Design.default): Font
fun system(style: Font.TextStyle, design: Font.Design? = null, weight: Font.Weight? = null): Font
fun system(style: Font.TextStyle, design: Font.Design = Font.Design.default): Font
Types
class Font
class Design
class Leading
class TextStyle
class Weight
class Width