摘要
通过分析TrueType字体文件结构和提取出字符轮廓信息,实现了对字符的无失真任意放大和缩小以及旋转等特效,曲线轮廓可以进行填充。将二次Bezier曲线构成的字符轮廓,通过最小二分法转换成一组能够保持曲线轮廓形状的小折线,将原有的字体轮廓数据从用曲线轮廓表示转变为用多边形顶点控制,用一组点及其先后顺序来描述轮廓。研究了字形交叉的消隐处理方法,解决了笔画重叠的问题。打标机将得到的多边形顶点信息准确打标。
By analyzing the TrueType structure and extracting the information of character contour, the character can be randomly magnified or rotated without any distortion. The character contour which is composed by quadratic Bezier curve is transformed to a series of polygon by using minimum dichotomy method, the data of original character contour is transformed from curve contour expression to position con- trol of polygon, and the contour is described by a set of points and their sequences. The blanking processing method of characters crossing is re,arched, and the problem of strokes overlapping is solved. The label printer will print the accurate information by the vertex of obtained polygon.
出处
《辽宁科技大学学报》
CAS
2010年第3期248-252,共5页
Journal of University of Science and Technology Liaoning
基金
国家重点实验室开放基金资助(SKLR200702)