0PricingLogin
Jetpack Compose Academy · Lesson

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

  1. The Text Composable
  2. Font Size, Weight & Style
  3. Color, Alignment & Overflow
  4. AnnotatedString: Rich Mixed Text
← Back to Jetpack Compose Academy