FreeType2不能正确显示内嵌点阵的TrueType字体
平台:NDS果机/DeSmuMe+libnds。
内容:自己写着玩的GUI……
症状:http://tieba.baidu.com/f?kz=1043526998的17楼。
封装代码:
http://code.google.com/p/yslib/source/browse/YSLib/include/YSLib/Adaptor/yfont.h
http://code.google.com/p/yslib/source/browse/YSLib/source/YSLib/Adaptor/yfont.cpp
间接调用代码(关系不大,应该是底层的原因):
http://code.google.com/p/yslib/source/browse/YSLib/source/YSLib/Service/ytext.cpp
http://code.google.com/p/yslib/source/browse/YSLib/source/YSLib/UI/label.cpp
使用的库版本是2.4.5,除了cache部分是2.4.4(实测2.4.5的get ascender有问题,看了一下源码应该没啥依赖性于是就复制过来了),手写makefile用devkitPro编译。
modules.cfg生成的ftconfig.h:
FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )
FT_USE_MODULE( FT_Module_Class, sfnt_module_class )
FT_USE_MODULE( FT_Module_Class, autofit_module_class )
FT_USE_MODULE( FT_Module_Class, pshinter_module_class )
FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class )
FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class )
FT_USE_MODULE( FT_Module_Class, psnames_module_class )
编译选项只改了优化成-O3。
有人遇到过类似问题吗?求可能原因。。。