Slackware64-current, subpixel patch to rebuild Freetype must be edited
On the latest Slackware64-current (08/25/2014), I noticed when rebuilding Freetype to turn on subpixel rendering, the subpixel patch supplied with the build did not build, halting the compile.
Freetype 2.5.3 now places the config option ftoption.h under a different directory. The new directory is:
~/include/config/ftoption.h
The current diff patch in slackware (freetype.subpixel.rendering.diff.gz ) names the directory tree for older versions of freetype: ~/include/freetype/config as shown here for the diff patch.
--- ./include/freetype/config/ftoption.h.orig 2007-01-05 10:18:45.000000000 -0600
+++ ./include/freetype/config/ftoption.h 2007-04-21 15:07:04.000000000 -0500
The solution is simple. Unzip freetype.subpixel.rendering.diff.gz, edit the directory for ftoption.h as shown:
--- ./include/config/ftoption.h.orig 2007-01-05 10:18:45.000000000 -0600
+++ ./include/config/ftoption.h 2007-04-21 15:07:04.000000000 -0500
@@ -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
gzip the edited diff file and replace the original subpixel diff.gz and rebuild freetype with subpixel rendering turned on and enjoy your rendered fonts.**
**subject to your local N. American licensing restrictions.
|