Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

AGG lesson 22 Font Application of conv_contour function auto_detect_orientation

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report