Luna::VG::TextLineArrangeResult

Describes the arrange result of one text line that contains multiple glyphs.

struct Luna::VG::TextLineArrangeResult

Member objects

  • RectF bounding_rect

    The bounding rect of the line.

  • f32 baseline_offset

    The offset of the baseline of this line. The offset is relative to the starting edge of the text's bounding box.

  • f32 ascent

    The ascent value (units from baseline to the top of the character) of this line.

  • f32 decent

    The decent value (units from baseline to the bottom of the character, typically negative) of this line.

  • f32 line_gap

    The line gap of this line. The final line gap is determined by the greater line_gap value of two adjacent lines.

  • Vector glyphs

    The arrange result of one text glyphs in this line.