Struct amethyst_ui::FontAsset[][src]

pub struct FontAsset(pub Font<'static>);

A loaded set of fonts from a file.

Trait Implementations

impl Clone for FontAsset
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Asset for FontAsset
[src]

NAME: &'static str = "ui::Font"

An identifier for this asset used for debugging.

The Data type the asset can be created from.

The ECS storage type to be used. You'll want to use VecStorage in most cases.

impl SimpleFormat<FontAsset> for TtfFormat
[src]

NAME: &'static str = "TTF/OTF"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

impl SimpleFormat<FontAsset> for FontFormat
[src]

NAME: &'static str = "FontFormat"

A unique identifier for this format.

Options specific to the format, which are passed to import. E.g. for textures this would be stuff like mipmap levels and sampler info. Read more

Produces asset data from given bytes.

Auto Trait Implementations

impl Send for FontAsset

impl Sync for FontAsset