freetype日记1
1、对draw_bitmap的理解
slot->bitmap_left、slot->bitmap_top是每块字在笛卡尔最左上角的点
target_height - slot->bitmap_top是转化成LCD上的Y值;
draw_bitmap( &slot->bitmap,
slot->bitmap_left,
target_height - slot->bitmap_top )
代码:
/* example1.c */
/* */
/* This small program shows how to print a rotated string with the */
/* FreeType 2 library.