Table of Contents

Struct RenderGlyph

Namespace
Icy.Rendering.Fonts
Assembly
IcyUI.dll

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

Index int

Index of the rendered glyph in the specified string.

Codepoint int

Codepoint representing current glyph.

Bounds Rectangle

Bounds of the rendered glyph.

Advance int

Horizontal 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

int

Bounds

Bounds of the rendered glyph.

public Rectangle Bounds { get; init; }

Property Value

Rectangle

Codepoint

Codepoint representing current glyph.

public int Codepoint { get; init; }

Property Value

int

Index

Index of the rendered glyph in the specified string.

public int Index { get; init; }

Property Value

int