pub fn default(assets: &Path) -> Result<Font, Error>
Expand description
Load the default font.
If the notosans
feature is enabled, this will return the font loaded from
notosans::REGULAR_TTF
.
Otherwise this will attempt to locate the assets/fonts
directory. If the directory exists,
the first font that is found will be loaded. If no fonts are found, an error is returned.