AGG第二十二课conv_contour函数auto_detect_orientation的字体应用

1 提供如下的代码结构渲染字体

agg::conv_transform<...> conv (path,matrix);

创新互联建站是一家专业提供景宁畲族自治企业网站建设,专注与成都网站制作、成都网站设计、外贸营销网站建设HTML5、小程序制作等业务。10年已为景宁畲族自治众多企业、政府机构等服务。创新互联专业网站设计公司优惠进行中。

agg::conv_curve<...> curve (conv);

agg::conv_contour<...> contour(curve);

 

curve.approximaltion_scale (scale);

contour.auto_detect_orientation (true);

contour.width (bold);

当bold大于零,表示放大,当bold小于零,表示缩小

2 采用conv_contour的理由

为了放大或者缩小字体

3 采用auto_detect_orientation的理由

从上面的所有关于该函数的说明都知道conv_contour扩展轮廓线实际上是会根据图形绘制的方向而有所不同,逆时针绘制的图形和顺时针绘制的图形,扩展轮廓线刚好相反,所以需要调用auto_detect_orientation设置为true,屏蔽顺时针和逆时针之间的区别。有些英文字母绘制是顺时针的比如a,逆时针比如c,详细可参考上传的图片,windows自带的图片查看器可打开!!


分享名称:AGG第二十二课conv_contour函数auto_detect_orientation的字体应用
当前地址:http://scyanting.com/article/jgecei.html