提出了一种嵌入式矢量字体引擎的开发和实现方法.首先剖析了FreeType开源引擎的体系结构和渲染流程,然后针对TrueType矢量字体对其裁剪,包括去掉不相关字体解释器及宏、对轮廓分解算法优化等,最终在大小和速度上进行优化,开发出新的字体引擎.该引擎能很好地适用于存储空间小、运算能力不高的嵌入式系统,并在MTK平台下测试通过.
A method to develop and implement the font engine in the embedded system is introduced.First,we analyze the system architecture and rending process of open source font engine of FreeType.Then we tailor and optimize it for TrueType vector font by removing irrelevant font interpreter and macro,as well as optimizing the glyph decomposition algorithm.Finally we develop a new font engine which is optimized in size and display speed.The new engine features in lower storage space and higher arithmetic speed for the embedded system.The test on MTK platform proves its efficiency and practicality.