摘要
VxWorks5.5采用点阵字库实现字体显示,这种字库设计简洁,应用广泛,但一个字库只能对应一种字体的一种大小,在不确定使用何种字体的情况下,这种传统的字体显示方式便不能够满足需求。通过使用TrueType字库和FreeType字体引擎相结合的方式,能实现多种字体、任意大小的显示功能。主要介绍了TrueType、FreeType技术的基本原理,以及在VxWorks5.5下如何将WindML、FreeType和TrueType三者相结合实现矢量字体显示的方法。
Bitmap fonts are used to display in VxWorks5.5,which is simple and widely used.But it will not meet the demand when we don't make sure which font size is ok as each bitmap font file has only one font and one size.We can achieve a variety of fonts and sizes by using the TrueType fonts and FreeType font engine.This paper describes the basic principle of TrueType and FreeType technology,and how to realize outline font display by using WindML,FreeType and TrueType fonts.
出处
《计算机系统应用》
2011年第7期203-206,共4页
Computer Systems & Applications
关键词
矢量字体
编码转换
字体库加载
粗体
斜体
outline font
encoding translating
font file loading
bold
italic