[Fontconfig] Re: Can we get fonts as sharp as Windows?

Mike FABIAN mfabian at suse.de
Thu Feb 15 09:06:58 PST 2007


"Charles A. Landemaine" <landemaine at gmail.com> さんは書きました:

> Thanks Mike. I tried to compile Freetype with subpixel hinting support
> but I didn't have this option. Any idea?

So which version of freetype are you using? And which Linux
distribution?

If you have a freetype newer than 2.2.1, you need to define the option
FT_CONFIG_OPTION_SUBPIXEL_RENDERING in freetype/config/ftoption.h
as shown in the patch below.

If you freetype is 2.2.1 or older, subpixel hinting is already
compiled in. In that case (old freetype), you just need to enable it
in your fontconfig setup.

diff -ru freetype-2.2.1.20061013.orig/include/freetype/config/ftoption.h freetype-2.2.1.20061013/include/freetype/config/ftoption.h
--- freetype-2.2.1.20061013.orig/include/freetype/config/ftoption.h	2006-09-26 23:55:44.000000000 +0200
+++ freetype-2.2.1.20061013/include/freetype/config/ftoption.h	2006-10-19 14:12:48.000000000 +0200
@@ -92,7 +92,7 @@
   /* This is done to allow FreeType clients to run unmodified, forcing     */
   /* them to display normal gray-level anti-aliased glyphs.                */
   /*                                                                       */
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
 
 
   /*************************************************************************/


-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
I � Unicode


More information about the Fontconfig mailing list