Struct DWriteGlyphRunDescription
The DWRITE_GLYPH_RUN_DESCRIPTION structure contains additional properties
related to those in DWRITE_GLYPH_RUN.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteGlyphRunDescription : IEquatable<DWriteGlyphRunDescription>
Constructors
|
Edit this page
View Source
DWriteGlyphRunDescription(char*, char*, ushort*, uint)
Declaration
public DWriteGlyphRunDescription(char* localeName, char* textString, ushort* clusterMap, uint textPosition)
Parameters
| Type |
Name |
Description |
| char* |
localeName |
|
| char* |
textString |
|
| ushort* |
clusterMap |
|
| uint |
textPosition |
|
Properties
|
Edit this page
View Source
ClusterMap
Gets or sets an array of indices to the glyph indices array, of the first glyphs of
all the glyph clusters of the glyphs to render.
Declaration
public ushort* ClusterMap { get; set; }
Property Value
|
Edit this page
View Source
LocaleName
Gets or sets the locale name associated with this run.
Declaration
public char* LocaleName { get; set; }
Property Value
|
Edit this page
View Source
TextLength
Gets the number of characters (UTF16 code-units).
Note that this may be different than the number of glyphs.
Declaration
public uint TextLength { get; }
Property Value
|
Edit this page
View Source
TextPosition
Gets or sets the corresponding text position in the original string
this glyph run came from.
Declaration
public uint TextPosition { get; set; }
Property Value
|
Edit this page
View Source
TextString
Gets or sets the text associated with the glyphs.
Declaration
public char* TextString { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteGlyphRunDescription)
Declaration
public readonly bool Equals(DWriteGlyphRunDescription other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DWriteGlyphRunDescription NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteGlyphRunDescription>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteGlyphRunDescription> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DWriteGlyphRunDescription)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteGlyphRunDescription obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteGlyphRunDescription>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteGlyphRunDescription> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteGlyphRunDescription, DWriteGlyphRunDescription)
Declaration
public static bool operator ==(DWriteGlyphRunDescription left, DWriteGlyphRunDescription right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteGlyphRunDescription, DWriteGlyphRunDescription)
Declaration
public static bool operator !=(DWriteGlyphRunDescription left, DWriteGlyphRunDescription right)
Parameters
Returns
Implements