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]

[src]

Construct the new, empty Map.

[src]

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

[src]

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

[src]

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

Important traits for Ids<'a>
[src]

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

Trait Implementations

Auto Trait Implementations

impl Send for Map

impl Sync for Map