• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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
Inheritance
object
TtfOutlineRenderer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX