|
楼主 |
发表于 2005-10-14 19:55:38
|
显示全部楼层
实现办法:
1.下载freetype2.1.10,打这两个补丁:
- --- include/freetype/config/ftoption.h.orig 2005-10-14 13:27:44.000000000 +0800
- +++ include/freetype/config/ftoption.h 2005-10-14 13:31:24.000000000 +0800
- @@ -436,7 +436,7 @@
- /* Do not #undef this macro here, since the build system might */
- /* define it for certain configurations only. */
- /* */
- -/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
- +#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
-
-
- /*************************************************************************/
复制代码
- --- freetype-2.1.10/src/sfnt/sfdriver.c.orig 2005-03-03 19:29:59.000000000 +0800
- +++ freetype-2.1.10/src/sfnt/sfdriver.c 2005-10-14 14:06:07.000000000 +0800
- @@ -367,8 +367,13 @@
- /* see `ttsbit.h' and `sfnt.h' */
- tt_face_set_sbit_strike,
- tt_face_load_sbit_strikes,
- +#ifdef FT_OPTIMIZE_MEMORY
- 0 /* tt_find_sbit_image */,
- 0 /* tt_load_sbit_metrics */,
- +#else
- + tt_find_sbit_image,
- + tt_load_sbit_metrics,
- +#endif
- tt_face_load_sbit_image,
- tt_face_free_sbit_strikes,
复制代码
然后安装./configure;make;make install;
2. apt-get source -b libxft2,完成很安装
3. apt-get source -b libcairo2,完成后安装
4.修改~/.fonts.conf
添加上这一段:
- <match target="font">
- <!-- check to see if the font is just regular -->
- <test name="weight" compare="less_eq">
- <int>100</int>
- </test>
- <!-- check to see if the pattern requests bold -->
- <test target="pattern" name="weight" compare="more_eq">
- <int>180</int>
- </test>
- <!-- set the embolden flag -->
- <edit name="embolden" mode="assign">
- <bool>true</bool>
- </edit>
- </match>
复制代码 |
|