Click to Rate and Give Feedback
MSDN
MSDN Library
Windows GDI
Fonts and Text
 TTPOLYCURVE
Windows GDI
TTPOLYCURVE

The TTPOLYCURVE structure contains information about a curve in the outline of a TrueType character.

typedef struct tagTTPOLYCURVE { 
  WORD    wType; 
  WORD    cpfx; 
  POINTFX apfx[1]; 
} TTPOLYCURVE, *LPTTPOLYCURVE; 

Members

wType
Specifies the type of curve described by the structure. This member can be one of the following values.
ValueMeaning
TT_PRIM_LINECurve is a polyline.
TT_PRIM_QSPLINECurve is a quadratic Bézier spline.
TT_PRIM_CSPLINECurve is a cubic Bézier spline.

cpfx
Specifies the number of POINTFX structures in the array.
apfx
Specifies an array of POINTFX structures that define the polyline or Bézier spline.

Remarks

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 specified 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.

Requirements

  Windows NT/2000/XP/Vista: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Wingdi.h; include Windows.h.

See Also

Fonts and Text Overview, Font and Text Structures, GetGlyphOutline, POINTFX, TTPOLYGONHEADER


Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker