Expand description
The font::Id
and font::Map
types.
Structs
- A type-safe wrapper around the
FontId
. - Yields the
Id
for eachFont
within theMap
. - A collection of mappings from
font::Id
s torusttype::Font
s. - An iterator yielding an
Id
for each newrusttype::Font
inserted into theMap
via theinsert_collection
method.
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
FontCollection
from 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
Font
from a file at the given path. - Produce a unique ID for the given font.