Expand description
The font::Id and font::Map types.
Structs
- A type-safe wrapper around the
FontId. - Yields the
Idfor eachFontwithin theMap. - A collection of mappings from
font::Ids torusttype::Fonts. - An iterator yielding an
Idfor each newrusttype::Fontinserted into theMapvia theinsert_collectionmethod.
Enums
- Returned when loading new fonts from file or bytes.
Constants
- The name of the default directory that is searched for fonts.
Functions
- Load a
FontCollectionfrom a file at a given path. - Load the default font.
- The directory that is searched for default fonts.
- Load the default notosans font.
- Load a single
Fontfrom a file at the given path. - Produce a unique ID for the given font.