#include #include #include "gb2312.h" #include "freetype2.h" static struct{ char szFontName[64]; char szFontFile[128]; }FontInfo[] = { { "楷体", "./simkai.ttf" }, { "黑体", "./simhei.ttf" }, { "宋体", "./simsun.ttc" }, { "Uming", "./uming.ttf" } }; static char* GetFontFile(char *pszFontName) { int i; int nSize; if((NULL == pszFontName) || ('\0' == *pszFontName)) goto err; ...
by peeweek - Linux文档专区 - 2009-12-08 21:43:07 阅读(2213) 回复(0)
getbitmap.c[color="#b0c4de"]#include [color="#ffa07a"] [color="#b0c4de"]#include FT_freetype_H [color="#98fb98"]int [color="#87cefa"]main([color="#98fb98"]int [color="#eedd82"]argc, [color="#98fb98"]char **[color="#eedd82"]argv){ [color="#98fb98"]int [color="#eedd82"]psize; [color="#98fb98"]FT_Library [color="#eedd82"]library; [color="#98fb98"]FT_Face [color="#eedd82"]face; [color="#98fb98...
装freetype2需要 libfreetype6 libttf 但是 libttf2-2.1.9-1_4.rh9.at.i386.rpm libfreetype6-2.1.9-1_4.rh9.at.i386.rpm 都装不了提示 file /usr/lib/libfreetype.so.6 from install of libfreetype6-2.1.9-1_4.rh9.at conflicts with file from package freetype-2.1.3-6 freetype-2.1.3-6也不能卸载 - -! 请高人指点指点。。。
装freetype2需要 libfreetype6 libttf 但是 libttf2-2.1.9-1_4.rh9.at.i386.rpm libfreetype6-2.1.9-1_4.rh9.at.i386.rpm 都装不了提示 file /usr/lib/libfreetype.so.6 from install of libfreetype6-2.1.9-1_4.rh9.at conflicts with file from package freetype-2.1.3-6 freetype-2.1.3-6也不能卸载 - -! 请高人指点指点。。。
最近在基于freetype2做字体显示的功能,有几个疑问不明白,首先打开AA的效果怎么感觉字体的效果出来后毛绒绒的,就是边的部分灰度值在0~255之间,不知有啥patch能改变这种效果,觉得还是windows上的cleartype舒服啊,另外就是想到利用描边去改善这块的效果,但看了看文档,也没发现FT_Stroke怎么个用起来,freetype2这块新手,请大家指教:)
安装freetype2有如此提示,如何是好。。
[root@Www. freetype-2.2.1]#./configure
GNU make (>= 3.79.1) or makepp (>= 1.19) is required to build freetype2.
Please try
`GNUMAKE=
安装freetype2有如此提示,如何是好。。
[root@Www. freetype-2.2.1]#./configure
GNU make (>= 3.79.1) or makepp (>= 1.19) is required to build freetype2.
Please try
`GNUMAKE=