pub struct Glyph {Show 19 fields
pub glyph_id: u16,
pub codepoint: char,
pub font_hash: u64,
pub font_metrics: LayoutFontMetrics,
pub style: Arc<StyleProperties>,
pub source: GlyphSource,
pub logical_byte_index: usize,
pub logical_byte_len: usize,
pub content_index: usize,
pub cluster: u32,
pub advance: f32,
pub kerning: f32,
pub offset: Point,
pub vertical_advance: f32,
pub vertical_origin_y: f32,
pub vertical_bearing: Point,
pub orientation: GlyphOrientation,
pub script: Script,
pub bidi_level: BidiLevel,
}Expand description
Enhanced glyph with all features
Fields§
§glyph_id: u16§codepoint: char§font_hash: u64Hash of the font - use LoadedFonts to look up the actual font when needed
font_metrics: LayoutFontMetricsCached font metrics to avoid font lookup for common operations
style: Arc<StyleProperties>§source: GlyphSource§logical_byte_index: usize§logical_byte_len: usize§content_index: usize§cluster: u32§advance: f32§kerning: f32§offset: Point§vertical_advance: f32§vertical_origin_y: f32§vertical_bearing: Point§orientation: GlyphOrientation§script: Script§bidi_level: BidiLevelTrait Implementations§
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnwindSafe for Glyph
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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