Struct epaint::text::Glyph [−][src]
pub struct Glyph {
pub chr: char,
pub pos: Pos2,
pub size: Vec2,
pub uv_rect: UvRect,
pub section_index: u32,
}
Fields
chr: char
pos: Pos2
Relative to the galley position.
Logical position: pos.y is the same for all chars of the same TextFormat
.
size: Vec2
Advance width and font row height.
uv_rect: UvRect
Position of the glyph in the font texture.
section_index: u32
Index into LayoutJob::sections
. Decides color etc.
Implementations
Same y range for all characters with the same TextFormat
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Glyph
impl UnwindSafe for Glyph
Blanket Implementations
Mutably borrows from an owned value. Read more