经过两天的痛苦的测试和查阅资料终于将可以在minigui上跑ttf失量字体了,一下记录和整理整过程,给需要的人借鉴。
我使用的minigui版本是libminigui-gpl-3.0.12.tar.gz官网可以下载。
因为要minigui默认配置是不支持ttf字体的,这需要重新编译minigui源码,在源码中增加freetype字体引擎的支持,字体引擎freetype有两个版本,经测试都可以使用。
一.不支持矢量字库的minigui源码编译
./configure
make
sudo make uninstall
sudo make install
sudo ldconfig
二.编译内核使其支持ttf字体,有两个版本的freetype引擎库,经测试都可以使用,只是有少许差异
1.支持矢量字库1
1.先编译安装freetype1字体引擎。
2.网上下载freetype-1.3.1.tar.gz压缩包
3.拷贝到linux上后解压
$:tar zxvf freetype-1.3.1.tar.gz
4.配置 进入解压后的文件
$:./configure
5.编译
$:make
出现如下错误
make[1]: Entering directory `/home/freetype-1.3.1/test'
gcc -c -I. -I/home/freetype-1.3.1/test/arch/unix/../.. -I.. -I/home/freetype-1.3.1/test/arch/unix/../../../lib -I/home/freetype-1.3.1/ test/arch/unix/../../../lib/extend -g -O2 -Wall -pedantic -ansi -DX11 -DLOCALEDIR='"/usr/share/locale"' ftdump.c
ftdump.c:172:1: error: pasting "." and "glyph_object" does not give a valid preprocessing token
ftdump.c:182:1: error: pasting "." an