pub struct Glyph {
pub code: u32,
pub unicode: Option<String>,
pub font: Arc<dyn Font>,
pub trm: Matrix,
pub origin: (f64, f64),
pub end: (f64, f64),
pub size: f64,
pub render_mode: i64,
}Expand description
One shown glyph.
Fields§
§code: u32The character code.
unicode: Option<String>Its Unicode text, if the font knows it.
font: Arc<dyn Font>The font.
trm: MatrixText rendering matrix: glyph space (scaled by the font size) to page space.
origin: (f64, f64)Where the glyph starts on the baseline, in page space.
end: (f64, f64)Where the next glyph would start, in page space.
size: f64The font size in page space (the height of one em).
render_mode: i64Text rendering mode.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Glyph
impl !UnwindSafe for Glyph
impl Freeze for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin 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