Struct GlyphMetric
Represents a Glyph metric.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct GlyphMetric
Constructors
| Improve this Doc View SourceGlyphMetric(Int32, FontRectangle, Boolean)
Initializes a new instance of the GlyphMetric struct.
Declaration
public GlyphMetric(int codePoint, FontRectangle bounds, bool isControlCharacter)
Parameters
Type | Name | Description |
---|---|---|
Int32 | codePoint | Unicode codepoint of the character. |
FontRectangle | bounds | The bounds. |
Boolean | isControlCharacter | Whether the character is a control character. |
Properties
| Improve this Doc View SourceBounds
Gets the character bounds.
Declaration
public readonly FontRectangle Bounds { get; }
Property Value
Type | Description |
---|---|
FontRectangle |
Character
Gets the UTF-16 encoded character.
Declaration
public readonly string Character { get; }
Property Value
Type | Description |
---|---|
String |
Codepoint
Gets the Unicode codepoint of the character.
Declaration
public readonly int Codepoint { get; }
Property Value
Type | Description |
---|---|
Int32 |
IsControlCharacter
Gets a value indicating whether the character is a control character.
Declaration
public readonly bool IsControlCharacter { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |