Class GlyphRun
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
Contains the information needed by renderers to draw glyph runs. All coordinates are in device independent pixels (DIPs).
public class GlyphRun : IDisposable
- Inheritance
-
GlyphRun
- Implements
- Inherited Members
Constructors
GlyphRun()
public GlyphRun()
Fields
BidiLevel
The implicit resolved bidi level of the run. Odd levels indicate right-to-left languages like Hebrew and Arabic, while even levels indicate left-to-right languages like English and Japanese (when written horizontally). For right-to-left languages, the text origin is on the right, and text should be drawn to the left.
public int BidiLevel
Field Value
FontSize
The logical size of the font in DIPs (equals 1/96 inch), not points.
public float FontSize
Field Value
IsSideways
If true, specifies that glyphs are rotated 90 degrees to the left and vertical metrics are used. Vertical writing is achieved by specifying isSideways = true and rotating the entire run 90 degrees to the right via a rotate transform.
public RawBool IsSideways
Field Value
- RawBool
Properties
Advances
An optional array of glyph advances. This array could be null or contains SharpDX.DirectWrite.GlyphRun.GlyphCount elements.
public float[] Advances { get; set; }
Property Value
- float[]
FontFace
Gets or sets the FontFace associated with this GlypRun.
public FontFace FontFace { get; set; }
Property Value
- FontFace
The font face.
Indices
An array of glyph indices. This array contains SharpDX.DirectWrite.GlyphRun.GlyphCount elements.
public short[] Indices { get; set; }
Property Value
- short[]
Offsets
An optional array of glyph offsets. This array could be null or contains SharpDX.DirectWrite.GlyphRun.GlyphCount elements.
public GlyphOffset[] Offsets { get; set; }
Property Value
Methods
Dispose()
public void Dispose()