MaterialSymbolFontsConfig

data class MaterialSymbolFontsConfig(val weight: FontWeight = FontWeight.Normal, val grade: Int = 0, val opticalSize: TextUnit = 24.sp)

Variable-font axis configuration applied uniformly to every Material Symbol glyph in the app — passed via MosaicThemeConfig.materialSymbolFontsConfig in MosaicApplication.

Constructors

Link copied to clipboard
constructor(weight: FontWeight = FontWeight.Normal, grade: Int = 0, opticalSize: TextUnit = 24.sp)

Properties

Link copied to clipboard
val grade: Int

fine weight adjustment independent of weight (Google's own "grade" axis). Must be in [-25, 200].

Link copied to clipboard

the font's optical-size axis, in sp. Must be in [20sp, 48sp].

Link copied to clipboard

glyph stroke weight. Must resolve to a value in [100, 700].