Struct GlyphBounds
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct GlyphBounds
Constructors
| Edit this page View SourceGlyphBounds(CodePoint, in FontRectangle, int, int)
Initializes a new instance of the GlyphBounds struct.
Declaration
public GlyphBounds(CodePoint codePoint, in FontRectangle bounds, int graphemeIndex, int stringIndex)
Parameters
Type | Name | Description |
---|---|---|
CodePoint | codePoint | The Unicode codepoint for the glyph. |
FontRectangle | bounds | The glyph bounds. |
int | graphemeIndex | The index of the grapheme in original text. |
int | stringIndex | The index of the codepoint in original text.. |
Properties
| Edit this page View SourceBounds
Gets the glyph bounds.
Declaration
public FontRectangle Bounds { get; }
Property Value
Type | Description |
---|---|
FontRectangle |
Codepoint
Gets the Unicode codepoint of the glyph.
Declaration
public CodePoint Codepoint { get; }
Property Value
Type | Description |
---|---|
CodePoint |
GraphemeIndex
Gets grapheme index of glyph in original text.
Declaration
public int GraphemeIndex { get; }
Property Value
Type | Description |
---|---|
int |
StringIndex
Gets string index of glyph in original text.
Declaration
public int StringIndex { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |