Enum amethyst_ui::FontFormat [−][src]
pub enum FontFormat { Ttf, Otf, }
Wrapper format for all core supported Font formats
Variants
Ttf
TTF Format
Otf
OTF Format
Trait Implementations
impl Debug for FontFormat
[src]
impl Debug for FontFormat
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for FontFormat
[src]
impl Clone for FontFormat
fn clone(&self) -> FontFormat
[src]
fn clone(&self) -> FontFormat
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 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.
Auto Trait Implementations
impl Send for FontFormat
impl Send for FontFormat
impl Sync for FontFormat
impl Sync for FontFormat