#[repr(C)]pub struct Font {
pub fallback_advance_x: f32,
pub font_size: f32,
pub config_data_count: i16,
pub fallback_char: u32,
pub ellipsis_char: u32,
pub dot_char: u32,
pub dirty_lookup_tables: bool,
pub scale: f32,
pub ascent: f32,
pub descent: f32,
pub metrics_total_surface: i32,
pub used_4k_pages_map: [u8; 34],
/* private fields */
}
Expand description
Runtime data for a single font within a font atlas
Fields§
§fallback_advance_x: f32
§font_size: f32
§config_data_count: i16
§fallback_char: u32
§ellipsis_char: u32
§dot_char: u32
§dirty_lookup_tables: bool
§scale: f32
§ascent: f32
§descent: f32
§metrics_total_surface: i32
§used_4k_pages_map: [u8; 34]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl !Send for Font
impl !Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more