不带缓存的FreeType使用
1、 初始化库
FT_Init_FreeType( FT_Library *alibrary );
2、 通过创建一个新的 face 对象来打开一个字体文件
FT_New_Face( FT_Library library,
const char* filepathname,
FT_Long face_index,
FT_Face *aface );
3、 以点或者象素的形式选择一个字符大小
FT_Set_Char_Size( FT_Face face,
FT_F26Dot6 char_width,
FT_F26Dot6 char_height,
FT_UInt horz_resolution,
FT_UInt vert_resolution );
FT_Set_Pixel_Sizes( FT_Face face,
FT_UInt pixel_width,
FT_UInt pixel_height );
4、 装载一个字形(glyph)图像,并把它转换为位图
(1)把一个字符码转换为一个字形索引
FT_Get_Char_Index( FT_Face face,
FT_ULong charcode );
(2)从face中装载一个字形
FT_Load_Glyph( FT_Face face,