AGG lesson 22 Font Application of conv_contour function auto_detect_orientation
1 provides the following code structure to render fonts
Agg::conv_transform conv (path,matrix)
Agg::conv_curve curve (conv)
Agg::conv_contour contour (curve)
Curve.approximaltion_scale (scale)
Contour.auto_detect_orientation (true)
Contour.width (bold)
When bold is greater than zero, it is enlarged, and when bold is less than zero, it is reduced.
2 reasons for adopting conv_contour
In order to enlarge or reduce the font
3 reasons for adopting auto_detect_orientation
From all the above instructions on this function, we know that conv_contour extension contours actually vary according to the direction in which the graphics are drawn, counterclockwise and clockwise graphics, the extension contours are just the opposite, so you need to call auto_detect_orientation to set to true to shield the difference between clockwise and counterclockwise. Some English letters are drawn clockwise such as a, counterclockwise such as c, for details can refer to the uploaded picture, windows comes with the picture viewer can be opened!