Method DrawGlyphRun
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
DrawGlyphRun(Point2Float, in GlyphRun, in GlyphRunDescription, IDeviceBrush, TextMeasuringMode)
Draws a series of glyphs to the device context.
void DrawGlyphRun(Point2Float baselineOrigin, in GlyphRun glyphRun, in GlyphRunDescription glyphRunDescription, IDeviceBrush foregroundBrush, TextMeasuringMode measuringMode = TextMeasuringMode.Natural)
Parameters
baselineOrigin
Point2FloatOrigin of first glyph in the series.
glyphRun
GlyphRunThe glyphs to render.
glyphRunDescription
GlyphRunDescriptionSupplementary glyph series information. Optional. Use the C#
default
keyword to omit this parameter.foregroundBrush
IDeviceBrushThe brush that defines the text color.
measuringMode
TextMeasuringModeThe measuring mode of the glyph series, used to determine the advances and offsets.
Remarks
The glyphRunDescription is ignored when rendering, but can be useful for printing and serialization of rendering commands, such as to an XPS or SVG file.