Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Curved Paths

An application can flatten the curves in a path by calling the FlattenPath function. This function is especially useful for applications that fit text onto the contour of a path which contains curves. To fit the text, the application must perform the following steps:

  1. Create the path where the text appears.
  2. Call the FlattenPath function to convert the curves in a path into line segments.
  3. Call the GetPath function to retrieve those line segments.
  4. Calculate the length of each line and the width of each character in the string.
  5. Use line-width and character-width data to position each character along the curve.



Community Additions

© 2015 Microsoft