Struct amethyst_ui::TtfFormat [] [src]

pub struct TtfFormat;

Loads font files, supports TrueType and some OpenType files.

OpenType is a superset of TrueType, so if your OpenType file uses any features that don't exist in TrueType this will fail. This will only load the first font contained in a file. If this is a problem for you please file an issue with Amethyst on GitHub.

Trait Implementations

impl Clone for TtfFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Produces asset data from given bytes.