In this sample app, variable fonts are loaded up and some of their properties changed at runtime.
A variable font allows you to specify certain attributes of a font at runtime. Which means you do not need to package multiple font files, therefore saving download size.
- Smaller File size to download
- More options baked into a single font
- More powerful font specifications
- Variable Fonts are only available on Android P and are not yet a part of the Support Library.
- If you are animating the font between settings, this may cause performance issues
- Nick Butcher who initially demoed this at DroidCon Italy
- Google Developers Web Docs - Variable Fonts
- Typeface.Builder Docs
- Axis Praxis - Font Playground
- Zycon Font by David Berlow
- Mutator Sans Font