Method DrawSvgGlyphRun
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
DrawSvgGlyphRun(Point2Float, in GlyphRun, IDeviceBrush?, ISvgGlyphStyle?, int, TextMeasuringMode)
Draws a color glyph run that has the format of Svg.
void DrawSvgGlyphRun(Point2Float baselineOrigin, in GlyphRun glyphRun, IDeviceBrush? defaultFillBrush = null, ISvgGlyphStyle? svgGlyphStyle = null, int colorPaletteIndex = 0, TextMeasuringMode measuringMode = TextMeasuringMode.Natural)
Parameters
baselineOrigin
Point2FloatThe origin of the baseline for the glyph run.
glyphRun
GlyphRunThe glyphs to render.
defaultFillBrush
IDeviceBrushThe brush used to paint the specified glyphs.
svgGlyphStyle
ISvgGlyphStyleValues for context-fill, context-stroke, and context-value that are used when rendering SVG glyphs.
colorPaletteIndex
intThe index used to select a color palette within a color font. Note that this not the same as the paletteIndex in the ColorGlyphRun struct, which is not relevant for SVG glyphs.
measuringMode
TextMeasuringModeIndicates the measuring method used for text layout.