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]
impl Clone for TtfFormat
fn clone(&self) -> TtfFormat
[src]
fn clone(&self) -> TtfFormat
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 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.