pub struct RawCoreTextGlyph {
pub glyph_id: u16,
pub string_index_utf16: usize,
pub string_length_utf16: usize,
pub font_postscript_name: String,
pub font_family_name: String,
pub x_advance: f32,
pub y_advance: f32,
pub x_offset: f32,
pub y_offset: f32,
pub is_color_emoji: bool,
}Expand description
Raw glyph record emitted by the native CoreText bridge.
Fields§
§glyph_id: u16OpenType glyph index produced by CoreText.
string_index_utf16: usizeStart offset in native UTF-16 code units.
string_length_utf16: usizeLength in native UTF-16 code units covered by this glyph cluster.
font_postscript_name: StringPostScript name of the font face chosen by CoreText.
font_family_name: StringFamily name of the font face.
x_advance: f32Horizontal advance in points.
y_advance: f32Vertical advance in points.
x_offset: f32Horizontal placement offset in points.
y_offset: f32Vertical placement offset in points.
is_color_emoji: boolWhether this glyph belongs to a color emoji or bitmap face.
Trait Implementations§
Source§impl Clone for RawCoreTextGlyph
impl Clone for RawCoreTextGlyph
Source§impl Debug for RawCoreTextGlyph
impl Debug for RawCoreTextGlyph
Source§impl PartialEq for RawCoreTextGlyph
impl PartialEq for RawCoreTextGlyph
impl StructuralPartialEq for RawCoreTextGlyph
Auto Trait Implementations§
impl Freeze for RawCoreTextGlyph
impl RefUnwindSafe for RawCoreTextGlyph
impl Send for RawCoreTextGlyph
impl Sync for RawCoreTextGlyph
impl Unpin for RawCoreTextGlyph
impl UnsafeUnpin for RawCoreTextGlyph
impl UnwindSafe for RawCoreTextGlyph
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