HOWTO install infinality font-settings for Debian

Share your own howto's etc. Not for support questions!

HOWTO install infinality font-settings for Debian

Postby hadrons123 » 2012-11-19 04:20

This is a guide how to install Infinality font settings for Debian testing and unstable.
The steps given here are provided by the package maintainer Xiao-Long Chen at github.
Make sure you have the development packages as needed.
1. Clone the git repo

git clone https://github.com/chenxiaolong/Debian-Packages.git
cd Debian-Packages/

2. Install the build dependencies. Run the following
command and install the packages it lists using apt-get/synaptic/etc.

cd freetype-infinality/
dpkg-checkbuilddeps
cd ../fontconfig-infinality/
dpkg-checkbuilddeps

3. Build the packages:

cd ../freetype-infinality/
./build.sh
cd ../fontconfig-infinality/
./build.sh

4. Install the deb files:

cd ..
sudo dpkg -i freetype-infinality/*.deb fontconfig-infinality/*.deb

You'll need to reboot after installing the deb files. Enjoy the better
looking fonts!


Thanks to Xiao-Long Chen.

I have linked the debian binaries for some who don't prefer to build it on your system.
Its amd64 based packages.
For wheezy
http://dl.dropbox.com/u/106654446/infin ... -1_all.deb
http://dl.dropbox.com/u/106654446/infin ... -1_all.deb
http://dl.dropbox.com/u/106654446/infin ... _amd64.deb
For Jessie:
https://dl.dropboxusercontent.com/u/106 ... -2_all.deb
https://dl.dropboxusercontent.com/u/106 ... -3_all.deb
https://dl.dropboxusercontent.com/u/106 ... _amd64.deb
Download these packages and install with dpkg -i *.deb

Post install there are some font-config options provided by infinality which can be optionally set to preferred style using
Code: Select all
 bash /etc/fonts/infinality/infctl.sh setstyle
.

More info for setting different styles:
http://www.webupd8.org/2013/06/better-f ... -with.html
Last edited by hadrons123 on 2013-12-18 10:05, edited 5 times in total.
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby bwat47 » 2013-03-18 01:30

thank you for the guide, I did it in wheezy and it worked great :) infinality font rendering is essential to me, can't stand using any linux distro without it.
bwat47
 
Posts: 34
Joined: 2013-03-17 22:33

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby hadrons123 » 2013-03-18 01:43

Do you see any error messages in your bash terminal after you input your commands?
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby bwat47 » 2013-03-18 03:09

haven't seen any errors so far, do any type of commands in particular generate them?
bwat47
 
Posts: 34
Joined: 2013-03-17 22:33

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby hadrons123 » 2013-03-18 05:08

If you don't see errors, its OK. Its been dicussed already in this thread too.
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby hadrons123 » 2013-03-18 05:11

If you don't see errors, its OK. Its been dicussed already in this http://www.infinality.net/forum/viewtopic.php?f=2&t=206&p=1974&e=1974d too.
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby kcanbe » 2013-03-20 18:32

Subpixel-hinting and Font-smoothing

http://wiki.debian.org/Fonts#Infinality_for_Debian

A lot of things about the cairo package has changed recently in wheezy and unstable which have brought almost the same font setup to Debian (But not Squeeze or old) but you have to set it up to your liking. You can create a .fonts.conf file to any user account home folder to set this up. Patching and rebuilding of Cairo packages are not needed any more.


Here's a fonts file that works very well without infinality if anyone wants to go the native Debian way...

Image

$HOME/.fonts.conf

Code: Select all
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font" >
  <edit mode="assign" name="autohint" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle" >
  <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
   <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
   </edit>
 </match>
</fontconfig>
kcanbe
 
Posts: 10
Joined: 2013-03-06 03:14

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby hadrons123 » 2013-03-21 00:38

Still not as smooth as infinality.
Thanks for the input, anyway.
http://postimg.org/image/3unepzo9n/full/
Image
Last edited by hadrons123 on 2014-06-11 14:38, edited 1 time in total.
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby kcanbe » 2013-03-21 04:40

Infinality is clearly better, but look how close native Debian (with a proper fonts.conf) is to Infinality ...

Image
kcanbe
 
Posts: 10
Joined: 2013-03-06 03:14

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby hadrons123 » 2013-03-25 18:54

When you have higher resolution screen with more pixel density you can make a clear difference. Even though adding just a .fonts.conf file is easy. The benefits of infinality on your eyes are clearly better.
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby bwat47 » 2013-04-11 23:39

EDIT: NVM
bwat47
 
Posts: 34
Joined: 2013-03-17 22:33

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby bwat47 » 2013-05-28 21:11

I've starting having a problem with this out of the blue. It no longer seems to set the xft settings correctly on boot (it now follows the gnome font settings, previously it would always set xsettings to full hinting per infinality-settings.sh). And I noticed this occuring in my xsession-errors which seems related:

Code: Select all
/etc/gdm3/Xsession: Beginning session setup...
/etc/gdm3/Xsession: 1: /etc/profile.d/freetype-infinality.sh: source: not found
/etc/gdm3/Xsession: 5: /etc/profile.d/freetype-infinality.sh: [[: not found


I checked the freetype-infinality.sh script which has this:
Code: Select all
source /etc/default/freetype-infinality

DEB_HOST_MULTIARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)

if [[ "${INFINALITY}" == true ]]; then
  EXISTING=$(echo ${LD_PRELOAD} | grep "freetype.so" | grep -v "infinality" | wc -l)
  if [[ "${EXISTING}" == 0 ]]; then
    export LD_PRELOAD="/usr/lib/${DEB_HOST_MULTIARCH}/freetype-infinality/libfreetype.so.6.8.1:${LD_PRELOAD}"
  fi
fi


and I checked /etc/default and /etc/default/freetype-infinality does exist and is set to true...

I tried purging and reinstalling the packages but it didn't help.
bwat47
 
Posts: 34
Joined: 2013-03-17 22:33

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby shirish » 2013-06-09 20:08

Hi all,
I couldn't find either an RFP (Request for Package) or an ITP (Intent to Package) of infanility. I dunno what license is it under but would be nice if there was either of the two things.

Courtesy: wnpp.debian.net
Intel Dual-Core CPU E5400 (soc 775) @ 2.70GHz, onboard Intel G33, Asus MB P5KPL-AM IN (Intel G31), D-Link 2750u modem+router, 64-bit Debian Testing, GNOME 3.12 Flashback.
shirish
 
Posts: 668
Joined: 2010-12-08 12:59

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby hadrons123 » 2013-06-10 01:18

You are free to adopt and maintain if you are interested.
LENOVO Y580 CORE i7 3630QM|8 GB RAM |16GB Sandisk SSD| Debian, Fedora, ARCH

Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King
User avatar
hadrons123
 
Posts: 52
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby Loafers » 2013-10-10 04:58

build is outdated fyi
User avatar
Loafers
 
Posts: 24
Joined: 2009-09-06 03:39

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable