LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-27-2014, 07:19 PM   #1
gordydawg
Member
 
Registered: Sep 2013
Distribution: slackware
Posts: 51

Rep: Reputation: Disabled
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.
 
Old 08-28-2014, 11:50 AM   #2
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Oh thanks I was having that problem yesterday. Couldn't actually figure it out by myself (a few months without using Linux)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware64 13.37 alpine.SlackBuild fails when trying to rebuild package haxwithaxe Slackware 21 10-04-2011 03:44 PM
How do I rebuild an RPM with an edited .spec file? koobi Linux - Server 3 12-04-2007 11:17 AM
Slack 11.0 patch source code freetype-2.3.4 acummings Slackware 9 04-22-2007 10:51 AM
Compiling freetype for Slackware-current slaxnoob Slackware 1 06-14-2004 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration