Luna::VG::TextGlyphArrangeResult

Describes the arrange result of one text glyph.

struct Luna::VG::TextGlyphArrangeResult

Member objects

  • RectF bounding_rect

    The bounding rectangle of the glyph.

  • f32 origin_offset

    The orgin point offset of this glyph relative to the beginning of the current line.

  • f32 advance_length

    The advance length of the glyph. This is not always equal to bounding_rect.width, because some characters may take more spaces than necessary for paddings.

  • c32 character

    The Unicode codepoint of the glyph.

  • u32 index

    The index of this glyph in the shape buffer of the font atlas.