LinuxQuestions.org
Review your favorite Linux distribution.
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 12-15-2013, 01:14 AM   #436
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 120

Rep: Reputation: Disabled

Latest update on the infinality website is for freetype-2.4.12, but slackware64 14.1 has freetype-2.5.0.1. What patches did you apply? This shows how to patch freetype but the patch is for 2.4.12 and not 2.5.0.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-15-2013, 04:00 AM   #437
ninikos
Member
 
Registered: Dec 2012
Posts: 57

Rep: Reputation: 31
This is the last script I used.

freetype-entire-infinality-patchset-20131213-01

I removed the last section that patches these files
ttinterp.c
ttsubpix.c
ttsubpix.h

There were some substitution problems with some sites on firefox that used sans-serif as the font. The rendering was clear and nice. But I think the somewhat wider spacing also caused problems with some guis.

Anyway, I also followed dugan's nice advices and I have settled for this minimal updated freetype-2.5.2 along with the default slackware64-14.1 fontconfig that I use now. You have to enable the patch lines yourself to enable the patches in the slackbuild. It contains the cleartype.diff patch posted above. I also used dugan's fonst.conf.

EDIT: Use this slackbuild only for testing, it seems to break compiling other packages that include freetype, the headers are not installed correctly.

The freetype-2.5.2 slackbuild (sources included)

The result

Last edited by ninikos; 12-18-2013 at 04:16 PM.
 
Old 12-31-2013, 01:44 AM   #438
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272
Blog Entries: 2

Rep: Reputation: 85
Quote:
Originally Posted by ninikos View Post
Hi! I have updated the latest official infinality patches from here
http://www.infinality.net/blog/infin...etype-patches/
for slackaware-14.1 and it's freetype-2.5.0.1
and build freetype and fontconfig-infinality packages

Ready build packages (the freetype package is for x86_64 only, use the slackbuilds below for 32 bit)
freetype-2.5.0.1-x86_64-infinality20131213did.txz
EDIT: Since I don't know if it allowed to share this compiled
due to licensing, use the slackbuilds below to build freetytpe.
If it's ok, I can share the prebuild package again.
fontconfig-infinality-1-20130104_1-noarch-1did.txz

Download the two above packages and then
upgradepkg freetype-2.5.0.1-x86_64-infinality20131213did.txz
installpkg fontconfig-infinality-1-20130104_1-noarch-1did.txz
Reboot and enjoy infinality

The slackbuilds (all the required sources and patches are included)
infinality-sources.tar.gz

The updated infinality patch
freetype-entire-infinality-patchset-20131213-01.patch
(ttinterp.c) Removed all patches except one, all the rest seem to included upstream
(ttsubpix.c) Removed patches since the changes are included upstream
(ttsubpix.h) Removed patches since the changes are included upstream

Finally, an image showing the result
snapshot2.png
Thanks, I installed according to the guide.
Now slackpkg shows that I have an update to freetype, namely freetype-2.5.0-1-x86_64-1.txz
Should I skip this update? Becuase it would update the freetype package made with infinality..
So should I add freetype to /etc/slackpkg/blacklist?
Or in other words how to maintain this package w.r.t official freetype?
Thanks
 
Old 12-31-2013, 03:12 AM   #439
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 120

Rep: Reputation: Disabled
Yeah you wanna blacklist it otherwise it'll overwrite your patched freetype. I use patched freetype but I don't use slackpkg, just plain rsync:
Code:
rsync -ahvz --progress --stats --delete-after --exclude="kernel-source*" --exclude="freetype*" --exclude="mozilla-firefox*" rsync://ftp.nara.wide.ad.jp/pub/Linux/slackware/slackware-14.0/patches/packages/ .
 
Old 12-31-2013, 03:32 AM   #440
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272
Blog Entries: 2

Rep: Reputation: 85
Quote:
Originally Posted by GNU/Linux View Post
Yeah you wanna blacklist it otherwise it'll overwrite your patched freetype. I use patched freetype but I don't use slackpkg, just plain rsync:
Code:
rsync -ahvz --progress --stats --delete-after --exclude="kernel-source*" --exclude="freetype*" --exclude="mozilla-firefox*" rsync://ftp.nara.wide.ad.jp/pub/Linux/slackware/slackware-14.0/patches/packages/ .
Thanks, I put freetype* in /etc/slackpkg/blacklist.

Now if there was an update to freetype, would slackpkg show it or not..(and how would I know if there was an update or not without checking manually myself if slackpkg didnt show it)..
Perhaps I would have to rebuild the freetype package with the updated source if a new version came out..
 
Old 01-01-2014, 12:09 PM   #441
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Hi

Even Without infinality

noto sans fonts looks fantastic

http://www.binarytides.com/gorgeous-...-ubuntu-linux/
 
3 members found this post helpful.
Old 03-04-2014, 06:58 PM   #442
André0991
LQ Newbie
 
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by dugan View Post
I have FreeType rebuilt with the above patch

I have the following in /etc/fonts/conf.d:
  • 10-sub-pixel-rgb.conf
  • 11-lcdfilter-default.conf

...

It's not Infinality, but it's good enough for me.

I would like to know how to get 10-sub-pixel-rgb.conf and 11-lcdfilter-default.conf.

After applying the patch, I ran "upgradepkg --install-new --reinstall /tmp/freetype-2.5.0.1-x86_64-1.txz". Is this correct? I've read the man page of upgradepkg, but I'm not sure.

Thanks.
 
Old 03-05-2014, 11:33 AM   #443
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by André0991 View Post
I would like to know how to get 10-sub-pixel-rgb.conf and 11-lcdfilter-default.conf.

After applying the patch, I ran "upgradepkg --install-new --reinstall /tmp/freetype-2.5.0.1-x86_64-1.txz". Is this correct? I've read the man page of upgradepkg, but I'm not sure.
1. Those two files are installed by default on Slackware 14.1. They're in /etc/fonts/conf.avail. You can symlink them into /etc/fonts/conf.d.

2. I just do "upgradepkg /tmp/freetype-2.5.0.1-x86_64-1.txz"
 
Old 03-05-2014, 12:23 PM   #444
André0991
LQ Newbie
 
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by dugan View Post
1. Those two files are installed by default on Slackware 14.1. They're in /etc/fonts/conf.avail. You can symlink them into /etc/fonts/conf.d.

2. I just do "upgradepkg /tmp/freetype-2.5.0.1-x86_64-1.txz"
Got it.

Thanks.
 
Old 01-19-2015, 10:11 AM   #445
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Rep: Reputation: 56
@dugan is the patch from post #424 still required for freetype-2.5.5?

EDIT: looks like 2.5.5 still needs #define TT_CONFIG_OPTION_SUBPIXEL_HINTING to be uncommented

Last edited by dimm0k; 01-19-2015 at 11:28 AM.
 
Old 01-19-2015, 10:53 AM   #446
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272
Blog Entries: 2

Rep: Reputation: 85
Hi guys,

I recently came across [1], which could be used to install infinality bundle on Slackware.

However after the update to freetype-2.5.5, freetype did not build with the above, so I made some changes [2] and sent a pull request to the original author.

[1]:https://github.com/nihilismus/bob-infinality-bundle
[2]:https://github.com/aadityabagga/bob-infinality-bundle

Maybe it can be useful to someone.

Edit-
I only tested freetype from the above repos, did not install fontconfig or cairo (I already had fontconfig-infinality installed from ninikos' post above).

Last edited by aaditya; 01-19-2015 at 11:19 AM.
 
Old 01-19-2015, 11:08 PM   #447
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by BratPit View Post
Hi

Even Without infinality

noto sans fonts looks fantastic

http://www.binarytides.com/gorgeous-...-ubuntu-linux/
Following this guide my fonts are looking better then ever. Thanks!
 
Old 01-20-2015, 05:12 PM   #448
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
I tried Noto Sans, Droid Sans and Open Sans, but none of them are as good as Dejavu Sans for my eyes.

Last edited by Bindestreck; 01-20-2015 at 05:28 PM.
 
Old 01-20-2015, 11:11 PM   #449
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by Bindestreck View Post
I tried Noto Sans, Droid Sans and Open Sans, but none of them are as good as Dejavu Sans for my eyes.
Did you just try the font or did you use the config too? The config made the big difference for me.
 
Old 01-29-2015, 10:24 AM   #450
GNU/Linux
Member
 
Registered: Sep 2012
Distribution: Slackware-14
Posts: 120

Rep: Reputation: Disabled
Quote:
Originally Posted by aaditya View Post
Hi guys,

I recently came across [1], which could be used to install infinality bundle on Slackware.

However after the update to freetype-2.5.5, freetype did not build with the above, so I made some changes [2] and sent a pull request to the original author.

[1]:https://github.com/nihilismus/bob-infinality-bundle
[2]:https://github.com/aadityabagga/bob-infinality-bundle

Maybe it can be useful to someone.

Edit-
I only tested freetype from the above repos, did not install fontconfig or cairo (I already had fontconfig-infinality installed from ninikos' post above).
Are there any infinality packages available for Slackware? Freetype has been updated to 2.5.5 as you said... so can you make any updates or give some pointers to build the packages ourselves?
 
  


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
If I were to recompile & arch-optimize Slackware, where to begin? GrapefruiTgirl Slackware 124 06-22-2007 09:46 PM
How to Optimize Slackware 10.2? zeroz52 Slackware 23 10-04-2005 06:42 PM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 04:23 AM

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

All times are GMT -5. The time now is 07:02 AM.

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