The TTPOLYCURVE structure contains information about a curve in the outline of a TrueType character.
typedef struct tagTTPOLYCURVE { // ttpc WORD wType; WORD cpfx; POINTFX apfx[1]; } TTPOLYCURVE, FAR* LPTTPOLYCURVE;
Value |
Meaning |
TT_PRIM_LINE |
Curve is a polyline. |
TT_PRIM_QSPLINE |
Curve is a Bézier spline. |
When an application calls the GetGlyphOutline function, a glyph outline for a TrueType character is returned in a TTPOLYGONHEADER structure, followed by as many TTPOLYCURVE structures as are required to describe the glyph. All points are returned as POINTFX structures and represent absolute positions, not relative moves. The starting point given by the pfxStart member of the TTPOLYGONHEADER structure is the point at which the outline for a contour begins. The TTPOLYCURVE structures that follow can be either polyline records or spline records.
Polyline records are a series of points; lines drawn between the points describe the outline of the character. Spline records represent the quadratic curves (that is, quadratic b-splines) used by TrueType.