From 82adea77ce4c513a1ebc92e73aaf2912efa533e1 Mon Sep 17 00:00:00 2001 From: Thomas Bouve Date: Wed, 26 Mar 2014 13:11:13 +0100 Subject: [PATCH] freetype: enable subpixel rendering by default. --- Formula/freetype.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/freetype.rb b/Formula/freetype.rb index 2c6b7284d50..f4976e487fb 100644 --- a/Formula/freetype.rb +++ b/Formula/freetype.rb @@ -16,10 +16,17 @@ class Freetype < Formula keg_only :provided_pre_mountain_lion option :universal + option 'without-subpixel', "Disable sub-pixel rendering (a.k.a. LCD rendering, or ClearType)" depends_on "libpng" def install + if build.with? "subpixel" + inreplace "include/config/ftoption.h", + "/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */", + "#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING" + end + ENV.universal_binary if build.universal? system "./configure", "--prefix=#{prefix}", "--without-harfbuzz" system "make"