Struct GlyphRendererParameters
The combined set of properties that uniquely identify the glyph that is to be rendered at a particular size and dpi.
Implements
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct GlyphRendererParameters : IEquatable<GlyphRendererParameters>
Properties
| Improve this Doc View SourceCodePoint
Gets the codepoint represented by this glyph.
Declaration
public readonly CodePoint CodePoint { get; }
Property Value
| Type | Description |
|---|---|
| CodePoint |
Dpi
Gets the dots-per-inch the glyph is to be rendered at.
Declaration
public readonly float Dpi { get; }
Property Value
| Type | Description |
|---|---|
| Single |
Font
Gets the name of the Font this glyph belongs to.
Declaration
public readonly string Font { get; }
Property Value
| Type | Description |
|---|---|
| String |
FontStyle
Gets the style of the font this glyph belongs to.
Declaration
public readonly FontStyle FontStyle { get; }
Property Value
| Type | Description |
|---|---|
| FontStyle |
GlyphColor
Gets the color details of this glyph.
Declaration
public readonly GlyphColor GlyphColor { get; }
Property Value
| Type | Description |
|---|---|
| GlyphColor |
GlyphIndex
Gets the index of the glyph within the font tables.
Declaration
public readonly ushort GlyphIndex { get; }
Property Value
| Type | Description |
|---|---|
| UInt16 |
GlyphType
Gets the type of this glyph.
Declaration
public readonly GlyphType GlyphType { get; }
Property Value
| Type | Description |
|---|---|
| GlyphType |
PointSize
Gets the rendered point size.
Declaration
public readonly float PointSize { get; }
Property Value
| Type | Description |
|---|---|
| Single |
TextRun
Gets the text run this glyph belongs to.
Declaration
public readonly TextRun TextRun { get; }
Property Value
| Type | Description |
|---|---|
| TextRun |
Methods
| Improve this Doc View SourceEquals(GlyphRendererParameters)
Declaration
public readonly bool Equals(GlyphRendererParameters other)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphRendererParameters | other |
Returns
| Type | Description |
|---|---|
| Boolean |
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
Operators
| Improve this Doc View SourceEquality(GlyphRendererParameters, GlyphRendererParameters)
Compares two GlyphRendererParameters objects for equality.
Declaration
public static bool operator ==(GlyphRendererParameters left, GlyphRendererParameters right)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphRendererParameters | left | The GlyphRendererParameters on the left side of the operand. |
| GlyphRendererParameters | right | The GlyphRendererParameters on the right side of the operand. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the current left is equal to the |
Inequality(GlyphRendererParameters, GlyphRendererParameters)
Compares two GlyphRendererParameters objects for inequality.
Declaration
public static bool operator !=(GlyphRendererParameters left, GlyphRendererParameters right)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphRendererParameters | left | The GlyphRendererParameters on the left side of the operand. |
| GlyphRendererParameters | right | The GlyphRendererParameters on the right side of the operand. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the current left is unequal to the |