Struct ab_glyph::GlyphId [−][src]
pub struct GlyphId(pub u16);
Expand description
Glyph id.
Example
use ab_glyph::{FontRef, Font, GlyphId}; let font = FontRef::try_from_slice(include_bytes!("../../dev/fonts/Exo2-Light.otf"))?; let q_id: GlyphId = font.glyph_id('q');
Implementations
Construct a Glyph with given scale & position.
Example
let glyph = font.glyph_id('z').with_scale_and_position(24.0, point(100.0, 0.0));
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for GlyphId
impl UnwindSafe for GlyphId
Blanket Implementations
Mutably borrows from an owned value. Read more