Struct nannou::ui::prelude::text::font::Map[][src]

pub struct Map { /* fields omitted */ }

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

Methods

impl Map
[src]

Construct the new, empty Map.

Borrow the rusttype::Font associated with the given font::Id.

Adds the given rusttype::Font to the Map and returns a unique Id for it.

Insert a single Font into the map by loading it from the given file path.

Important traits for Ids<'a>

Produces an iterator yielding the Id for each Font within the Map.

Auto Trait Implementations

impl Send for Map

impl Sync for Map