PositionedGlyph Struct
A glyph of a font at a position: what a text shaper gives, which DrawingCanvas.FillGlyphs draws.
public readonly struct PositionedGlyph : IEquatable<PositionedGlyph>- Implements
Constructors
| Name | Description |
|---|---|
| PositionedGlyph(int, PointD) | Initializes a new instance of the PositionedGlyph struct. |
PositionedGlyph(int, PointD)
PositionedGlyph.csInitializes a new instance of the PositionedGlyph struct.
Properties
| Name | Description |
|---|---|
| Glyph | Gets the index of the glyph in the font. |
| Origin | Gets the origin of the glyph, on its baseline, in the coordinates of the drawing. |
Glyph
PositionedGlyph.csOrigin
PositionedGlyph.csMethods
| Name | Description |
|---|---|
| Equals(PositionedGlyph) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
Equals overloads
Equals(PositionedGlyph)
PositionedGlyph.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(PositionedGlyph other)Parameters
otherPositionedGlyph- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
PositionedGlyph.csGetHashCode()
PositionedGlyph.csOperators
| Name | Description |
|---|---|
| operator ==(PositionedGlyph, PositionedGlyph) | Compares two glyphs for equality. |
| operator !=(PositionedGlyph, PositionedGlyph) | Compares two glyphs for inequality. |
operator ==(PositionedGlyph, PositionedGlyph)
PositionedGlyph.csCompares two glyphs for equality.
public static bool operator ==(PositionedGlyph left, PositionedGlyph right)Parameters
leftPositionedGlyph- The first glyph.
rightPositionedGlyph- The second glyph.
Returns
bool true if they are the same glyph at the same position; otherwise false.
operator !=(PositionedGlyph, PositionedGlyph)
PositionedGlyph.csCompares two glyphs for inequality.
public static bool operator !=(PositionedGlyph left, PositionedGlyph right)Parameters
leftPositionedGlyph- The first glyph.
rightPositionedGlyph- The second glyph.
Returns
bool true if they are different glyphs or at different positions; otherwise false.