Table of Contents

Interface IRichChar

Namespace
RichHudFramework.UI.Rendering
Assembly
RichHudClient.dll

Represents a single glyph within a rich text element.

This interface exposes the character content, its specific formatting (font/color), and its calculated layout geometry (size/offset) relative to the container.

Warning: This object is a transient flyweight. It points to an index in a mutable buffer. Do not store references to IRichChar across text updates. If the parent text changes, this interface may point to stale or recycled data.

public interface IRichChar

Properties

Ch

The character associated with this glyph.

char Ch { get; }

Property Value

char

Format

The styling and formatting configuration used by this character.

GlyphFormat Format { get; }

Property Value

GlyphFormat

Offset

The position of the glyph's center relative to the parent text element's origin.

This is updated during the layout pass.

Vector2 Offset { get; }

Property Value

Vector2

Size

The dimensions of the glyph for layout purposes.

X = Advance width (cursor movement, includes kerning).

Y = Line height used by the font.

Vector2 Size { get; }

Property Value

Vector2