通过FreeType显示文字
-
下载FreeType:https://freetype.org/download.html
-
适配阅读文档:
freetype/docs/INSTALL.ANY
-
头文件路径包含: Middlewares_100ask/freetype/include
-
注释
freetype/include/freetype/config/ftoption.h
中的://#define FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES
添加编译宏:FT2_BUILD_LIBRARY
-
最终参与编译的文件:
-
如果在
lv_conf.h
中打开了宏 LV_FREETYPE_USE_LVGL_PORT 那么需要去掉:- freetype/src/base/ftsystem.c
-
实验验证参考:
技术交流学习
欢迎加入讨论:
- 社区交流: https://forums.100ask.net
- QQ技术交流群(如群满,请加qq:401684796 验证备注:LVGL):962138234
- 微信交流群:添加微信: baiwenkeji_fae 验证备注:LVGL
拓展阅读
- FreeType官网主页:https://freetype.org
- 下载FreeType:https://freetype.org/download.html
或直接打开下载链接:https://sourceforge.net/projects/freetype/files/latest/download - https://lvgl.100ask.net/9.2/libs/freetype.html
- 思源宋体字体:https://github.com/adobe-fonts/source-han-serif
- 思源黑体字体:https://github.com/adobe-fonts/source-han-sans
- 思源等宽字体:https://github.com/adobe-fonts/source-han-mono