pub struct Glyph {
pub x: f32,
pub y: f32,
pub size: f32,
pub ch: char,
pub alt: Option<char>,
pub face: Face,
pub width: f32,
pub height: f32,
pub depth: f32,
pub color: Option<[u8; 3]>,
}Expand description
One character.
Fields§
§x: f32Left edge of the glyph’s box.
y: f32The glyph’s baseline.
size: f32Font size, in em of the equation (1 for the main line, smaller in scripts).
ch: charThe character to draw.
alt: Option<char>A plainer character to draw when no font has ch (R for ℝ), before giving up.
face: Face§width: f32The glyph’s box (TeX metrics), already scaled by size: advance, height above and depth
below the baseline. A painter without the glyph draws a [?] box this size.
height: f32§depth: f32§color: Option<[u8; 3]>An explicit colour (\color); None is the equation’s own (“Automatic”) colour.
Trait Implementations§
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin 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