初始化部分就不说了,几个关键函数:
- FT_TS_Load_Glyph
- tt_glyph_load(load_glyph, FT_TS_Slot_LoadFunc)
- TT_Load_Glyph
- load_sbit_image
- tt_face_load_sbit_image(load_sbit_image, TT_Load_SBit_Image_Func)
decoder中传递了bitmap?
- tt_sbit_decoder_load_image
- tt_sbit_decoder_load_bitmap
tt_sbit_decoder_alloc_bitmap,此处设置当前位图的rows/width,
ft_glyphslot_alloc_bitmap:调用FT_MEM_ALLOC产生了缓冲区。
map由decoder中传递下来
- tt_sbit_decoder_load_byte_aligned
加载位图。