Class TtfOutlineRenderer
Decomposes a TrueType glyph outline (GlyphOutlineData) into IGlyphOutlinePainter commands.
Simple glyphs — each closed contour is walked and quadratic Bézier control points are converted to cubic form before being emitted.
Composite glyphs — each component is resolved recursively via the supplied TtfGlyfTable and rendered with the component's 2×3 affine transform composed into the current transform.
Quadratic → cubic conversion (standard formula):
C1 = (Q0 + 2·Q1) / 3
C2 = (2·Q1 + Q2) / 3
Inherited Members
Namespace: DRIT.Drawing.Font.Rendering
Assembly: DRIT.Drawing.dll
Syntax
public static class TtfOutlineRenderer
Methods
Render(GlyphOutlineData, IGlyphOutlinePainter, TtfGlyfTable?)
Renders outline using the identity transform.
Declaration
public static void Render(GlyphOutlineData outline, IGlyphOutlinePainter painter, TtfGlyfTable? glyfTable = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphOutlineData | outline | Parsed glyph outline from TtfGlyfTable. |
| IGlyphOutlinePainter | painter | Target that receives drawing commands. |
| TtfGlyfTable | glyfTable | Required for composite glyphs (component look-up); may be null for simple glyphs. |