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]
impl Clone for FontAsset
fn clone(&self) -> FontAsset
[src]
fn clone(&self) -> FontAsset
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Asset for FontAsset
[src]
impl Asset for FontAsset
const 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 TtfFormat
const 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 FontFormat
const 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.