[][src]Module nannou::text::font

The font::Id and font::Map types.

Structs

Id

A type-safe wrapper around the FontId.

Ids

Yields the Id for each Font within the Map.

Map

A collection of mappings from font::Ids to rusttype::Fonts.

NewIds

An iterator yielding an Id for each new rusttype::Font inserted into the Map via the insert_collection method.

Enums

Error

Returned when loading new fonts from file or bytes.

Constants

DEFAULT_DIRECTORY_NAME

The name of the default directory that is searched for fonts.

Functions

collection_from_file

Load a FontCollection from a file at a given path.

default

Load the default font.

default_directory

The directory that is searched for default fonts.

default_notosans

Load the default notosans font.

from_file

Load a single Font from a file at the given path.

id

Produce a unique ID for the given font.