google-fonts
Download and cache TTF fonts from Google.
11,689 fonts and 1,708 font families.
Similar to Downloadable Fonts in Android Studio, and Web Fonts Google 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.
variable 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 to accomplish the same thing. A majority of the fonts are in the static feature.
Prefer the variable feature when possible.
Enable the variable feature to significantly improve build time, crate size, and rust-analyzer performance.
Doc comment font images
View font images from docs.
