Interface IGlyphOutlinePainter
Receives decomposed glyph outline drawing commands from an outline renderer.
Implement this interface to paint, record, or convert glyph paths
(e.g. to a GraphicsPath, PDF stream, or SVG path).
Namespace: DRIT.Drawing.Font.Rendering
Assembly: DRIT.Drawing.dll
Syntax
public interface IGlyphOutlinePainter
Methods
ClosePath()
Closes the current sub-path by drawing a straight line back to the point set by the most recent MoveTo(MoveTo). Called once at the end of each contour.
Declaration
void ClosePath()
CurveTo(CurveTo)
Draws a cubic Bézier curve using two control points. TrueType quadratic splines are pre-converted to this cubic form.
Declaration
void CurveTo(CurveTo cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| CurveTo | cmd |
LineTo(LineTo)
Draws a straight line to the given endpoint.
Declaration
void LineTo(LineTo cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| LineTo | cmd |
MoveTo(MoveTo)
Lifts the pen and begins a new sub-path at the given point. Must be called at the start of each contour.
Declaration
void MoveTo(MoveTo cmd)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveTo | cmd |