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