Building Apps with Downloadable Fonts and EmojiCompat from the Support Library
summary
How to add Downloadable Fonts and EmojiCompat to Android apps: use Support Library 26 to run Downloadable Fonts back to Android 4.0 and obtain fonts via Google Play Services (note the default catalog currently lacks Japanese fonts). Describe migrating from Calligraphy to font resources applied through TextAppearance and async Typeface callbacks, and explain EmojiCompat support (API 19+, using the downloadable font bundle adds ~6.5MB to the APK), testing requirements (Play Store emulator image and Play Services update) and existing runtime bugs that require cautious use.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:15Downloadable fonts mechanism
- 3:32Implementing downloadable fonts
- 5:47Font signature check
- 8:40Font retrieval with ContentProvider
- 10:32Using downloadable fonts
- 13:53Calligraphy font setup
- 15:45EmojiCompat necessity and mechanism
- 18:03Surrogate pairs and code points
- 20:59EmojiCompat implementation
- 23:30Downloadable fonts and EmojiCompat summary
- 25:16Summary and future outlook
related talks
38mFonts, Emoji and Text Using Support Libraries
30mFonts, Emoji and Text Using Support Libraries
24mFonts and Emoji Using Support Libraries
40mWhat's New (?) in Android Text Over the Past Few Years
21mAndroid Emoji 2021
36mNo More □ — Mastering Emoji on Android
31mDiving into O and the Support Library
35mNO MORE □ — MASTERING EMOJI ON ANDROID
