Struct amethyst_ui::FontAsset [−][src]
pub struct FontAsset(pub Font<'static>);
A loaded set of fonts from a file.
Trait Implementations
impl Asset for FontAsset[src]
impl Asset for FontAssetconst NAME: &'static str
NAME: &'static str = "ui::Font"
An identifier for this asset used for debugging.
type Data = FontData
The Data type the asset can be created from.
type HandleStorage = VecStorage<Handle<Self>>
The ECS storage type to be used. You'll want to use VecStorage in most cases.
impl SimpleFormat<FontAsset> for TtfFormat[src]
impl SimpleFormat<FontAsset> for TtfFormatconst NAME: &'static str
NAME: &'static str = "TTF/OTF"
A unique identifier for this format.
type Options = ()
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
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<FontData, Error>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<FontData, Error>Produces asset data from given bytes.
impl SimpleFormat<FontAsset> for FontFormat[src]
impl SimpleFormat<FontAsset> for FontFormatconst NAME: &'static str
NAME: &'static str = "FontFormat"
A unique identifier for this format.
type Options = ()
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
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<FontData, Error>[src]
fn import(&self, bytes: Vec<u8>, _: ()) -> Result<FontData, Error>Produces asset data from given bytes.