pub struct FontAtlas {
pub version: u8,
pub meta: FontMeta,
pub glyphs: BTreeMap<char, GlyphVariants>,
pub line_height: u32,
pub mode: RenderMode,
pub available_styles: StyleFlags,
}Expand description
Complete font atlas for runtime text rendering.
Fields§
§version: u8§meta: FontMeta§glyphs: BTreeMap<char, GlyphVariants>§line_height: u32§mode: RenderMode§available_styles: StyleFlagsTrait Implementations§
Source§impl<'de> Deserialize<'de> for FontAtlas
impl<'de> Deserialize<'de> for FontAtlas
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontAtlas, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FontAtlas, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FontAtlas
impl Serialize for FontAtlas
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FontAtlas
impl RefUnwindSafe for FontAtlas
impl Send for FontAtlas
impl Sync for FontAtlas
impl Unpin for FontAtlas
impl UnsafeUnpin for FontAtlas
impl UnwindSafe for FontAtlas
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more