Typesetting: designing and building beautiful text layouts
summary
Concrete decisions and APIs rather than design platitudes: Android P adds firstBaselineToTopHeight and baseline-aware spacing, explicit lineHeight values (eg. 24sp → 32dp) and a 4dp baseline grid, AutoSize with autoSizePresetSizes, breakStrategy and hyphenation controls, and downloadable fonts that can be preloaded via Play services or bundled to avoid runtime jank. Variable fonts shrink APK weight, precomputed text shifts expensive measurement off the UI thread and reliably improves layout performance, spans distinguish appearance vs metric effects, and long texts benefit from splitting into RecyclerView pages.
AI-written summary · about
chapters (7)
- 0:00Start
- 5:24Color
- 7:51Size & Scale Autosize
- 11:40Line Breaking
- 12:08Line Spacing
- 29:00Style Default Style
- 43:03Long text
related talks
41mAndroid Textual Layout
37mAndroid Text, The Good The Bad and The ugly
36mBest practices for using text in Android
35mBest practices for text on Android
43mBest Practice for Text on Android and Its Internals
40mWhat's New (?) in Android Text Over the Past Few Years
26mDeep Dive into Jetpack Compose Text
15mUse Android text like a pro
