Font Size, Weight & Style
Make text bold, italic, and the right size.
Style Your Text
Plain words are fine, but real apps need emphasis. Text accepts simple arguments to control size, weight, and style without any XML.
Set the Size
Use fontSize to make text bigger or smaller. Sizes use the sp unit, which respects the user accessibility font settings.
Text("Big title", fontSize = 24.sp)All lessons in this course
- The Text Composable
- Font Size, Weight & Style
- Color, Alignment & Overflow
- AnnotatedString: Rich Mixed Text