Struct DWriteGlyphOffset
Optional adjustment to a glyph's position. A glyph offset changes the position of a glyph without affecting
the pen position. Offsets are in logical, pre-transform units.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteGlyphOffset : IEquatable<DWriteGlyphOffset>
Constructors
|
Edit this page
View Source
DWriteGlyphOffset(float, float)
Declaration
public DWriteGlyphOffset(float advanceOffset, float ascenderOffset)
Parameters
| Type |
Name |
Description |
| float |
advanceOffset |
Offset in the advance direction of the run.
|
| float |
ascenderOffset |
Offset in the ascent direction, i.e., the direction ascenders point.
|
Properties
|
Edit this page
View Source
AdvanceOffset
Gets or sets the offset in the advance direction of the run. A positive advance offset moves the glyph to the right
(in pre-transform coordinates) if the run is left-to-right or to the left if the run is right-to-left.
Declaration
public float AdvanceOffset { get; set; }
Property Value
|
Edit this page
View Source
AscenderOffset
Gets or sets the offset in the ascent direction, i.e., the direction ascenders point. A positive ascender offset moves
the glyph up (in pre-transform coordinates).
Declaration
public float AscenderOffset { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteGlyphOffset)
Declaration
public readonly bool Equals(DWriteGlyphOffset 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 DWriteGlyphOffset NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteGlyphOffset>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteGlyphOffset> 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 DWriteGlyphOffset)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteGlyphOffset obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteGlyphOffset>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteGlyphOffset> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteGlyphOffset, DWriteGlyphOffset)
Declaration
public static bool operator ==(DWriteGlyphOffset left, DWriteGlyphOffset right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteGlyphOffset, DWriteGlyphOffset)
Declaration
public static bool operator !=(DWriteGlyphOffset left, DWriteGlyphOffset right)
Parameters
Returns
Implements