pub struct FontEntry<'a> {
pub line_size: usize,
pub baseline: i32,
pub font_size: usize,
pub entries: &'a [(char, CharEntry)],
}Expand description
Describes a font baked into an AtlasSource.
Fields§
§line_size: usizeDistance between baselines in pixels.
baseline: i32Offset from the top of the line to the baseline.
font_size: usizeRequested pixel size.
entries: &'a [(char, CharEntry)]Glyph metadata table.
Auto Trait Implementations§
impl<'a> Freeze for FontEntry<'a>
impl<'a> RefUnwindSafe for FontEntry<'a>
impl<'a> Send for FontEntry<'a>
impl<'a> Sync for FontEntry<'a>
impl<'a> Unpin for FontEntry<'a>
impl<'a> UnwindSafe for FontEntry<'a>
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