PeachDrawing.Core
PeachDrawing.Core
ISvgGlyphPainter Interface
Draws the SVG document a font gives for a glyph (OpenType SVG) into the graphics it is set on. A text-painting backend knows how to place a glyph but not how to render SVG, which needs a real SVG engine (for example an SVG renderer the host supplies) it may not have - this is the seam between the two, obtained through CreateSvgGlyphPainter(Canvas) so a backend with no SVG engine (a standalone raster canvas) can supply none.
public interface ISvgGlyphPainter
| Methods | |
|---|---|
| TryPaint(Typeface, ushort, SvgGlyph, double, double, double, PaintColor, int, IReadOnlyDictionary<int,PaintColor>) | Draws the glyph with its origin at (originX, baselineY), in the units of the graphics. |