Struct RenderGlyph
Represents an info about rendered glyph.
public readonly record struct RenderGlyph : IEquatable<RenderGlyph>
- Implements
- Inherited Members
- Extension Methods
Remarks
This info can be used for debugging purposes, text selection or text customization.
Constructors
RenderGlyph(int, int, Rectangle, int)
Represents an info about rendered glyph.
public RenderGlyph(int Index, int Codepoint, Rectangle Bounds, int Advance)
Parameters
IndexintIndex of the rendered glyph in the specified string.
CodepointintCodepoint representing current glyph.
BoundsRectangleBounds of the rendered glyph.
AdvanceintHorizontal advance from the beginning of the string applied to the glyph.
Remarks
This info can be used for debugging purposes, text selection or text customization.
Properties
Advance
Horizontal advance from the beginning of the string applied to the glyph.
public int Advance { get; init; }
Property Value
Bounds
Bounds of the rendered glyph.
public Rectangle Bounds { get; init; }
Property Value
Codepoint
Codepoint representing current glyph.
public int Codepoint { get; init; }
Property Value
Index
Index of the rendered glyph in the specified string.
public int Index { get; init; }