Skip to main content

GeneratedNativeGlyph

Type Alias GeneratedNativeGlyph 

Source
pub type GeneratedNativeGlyph = PortableNativeGlyph;
Expand description

Reexport of the portable engine shaped glyph descriptor.

Aliased Type§

pub struct GeneratedNativeGlyph {
    pub glyph_id: u16,
    pub x: i32,
    pub y: i32,
    pub advance: i32,
    pub cluster_start: u32,
    pub cluster_end: u32,
    pub src_start: u32,
    pub src_end: u32,
}

Fields§

§glyph_id: u16§x: i32§y: i32§advance: i32§cluster_start: u32§cluster_end: u32§src_start: u32

SOURCE byte span (in the producing node’s primary_source.source coordinates) of the input char(s) that shaped this glyph, resolved from the per-code-unit tracked spans. 0/0 means unmapped (tracking off, no source, cross-source, or stale). Set by src_resolve_native_glyphs; the rendering fields (glyph_id/x/y/advance) are never touched.

§src_end: u32