google-fonts
Download and cache TTF fonts from Google using Rust.
There are 1,708 font families, and 11,689 fonts.
Similar to the Downloadable Fonts feature in Android Studio, and the Google Web Fonts API.
Example
Download font data with a few approaches.
use lemonada_variable;
use NotoSansRegular;
use RobotoRegular;
use Face;
Crate features
full, variable, and static crate features are available.
variableenables only fonts with variable font technology.staticenables only fonts with static font technology.fullenables bothvariableandstaticfeatures.
full is the default feature.
Variable font technology is newer, more flexible, and provides style variations in one or two files. Static font technology uses more font files for each style variation. A majority of the fonts are in the static feature.
Enable the variable feature to significantly reduce build time and crate size.
Doc comment font images
View font images from doc comments.
