pub struct LaidoutGlyph {
pub origin_in_lpxs: Point<f32>,
pub font: Rc<Font>,
pub font_size_in_lpxs: f32,
pub color: Option<Color>,
pub id: u16,
pub cluster: usize,
pub advance_in_ems: f32,
pub offset_in_ems: f32,
}Fields§
§origin_in_lpxs: Point<f32>§font: Rc<Font>§font_size_in_lpxs: f32§color: Option<Color>§id: u16§cluster: usize§advance_in_ems: f32§offset_in_ems: f32Implementations§
Source§impl LaidoutGlyph
impl LaidoutGlyph
pub fn advance_in_lpxs(&self) -> f32
pub fn offset_in_lpxs(&self) -> f32
pub fn ascender_in_lpxs(&self) -> f32
pub fn descender_in_lpxs(&self) -> f32
pub fn line_gap_in_lpxs(&self) -> f32
pub fn rasterize(&self, dpx_per_em: f32) -> Option<RasterizedGlyph>
Trait Implementations§
Source§impl Clone for LaidoutGlyph
impl Clone for LaidoutGlyph
Source§fn clone(&self) -> LaidoutGlyph
fn clone(&self) -> LaidoutGlyph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LaidoutGlyph
impl !RefUnwindSafe for LaidoutGlyph
impl !Send for LaidoutGlyph
impl !Sync for LaidoutGlyph
impl Unpin for LaidoutGlyph
impl !UnwindSafe for LaidoutGlyph
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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