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 SourceDpiX
Gets the dpi along the X axis we are rendering at.
Declaration
public readonly float DpiX { get; }
Property Value
Type | Description |
---|---|
Single |
DpiY
Gets the dpi along the Y axis we are rendering at.
Declaration
public readonly float DpiY { 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 type of this glyph.
Declaration
public readonly GlyphColor GlyphColor { get; }
Property Value
Type | Description |
---|---|
GlyphColor |
GlyphIndex
Gets the index of the glyph.
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 |
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 |