HOWTO install infinality font-settings for Debian

Share your own howto's etc. Not for support questions!
Post Reply
Message
Author
User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

HOWTO install infinality font-settings for Debian

#1 Post by hadrons123 »

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

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

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#2 Post by bwat47 »

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.

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#3 Post by hadrons123 »

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

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

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#4 Post by bwat47 »

haven't seen any errors so far, do any type of commands in particular generate them?

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#5 Post by hadrons123 »

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: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#6 Post by hadrons123 »

If you don't see errors, its OK. Its been dicussed already in this http://www.infinality.net/forum/viewtop ... 974&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

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

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#7 Post by kcanbe »

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>

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#8 Post by hadrons123 »

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

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

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#9 Post by kcanbe »

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

Image

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#10 Post by hadrons123 »

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

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

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#11 Post by bwat47 »

EDIT: NVM

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

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#12 Post by bwat47 »

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.

shirish
Posts: 821
Joined: 2010-12-08 12:59

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#13 Post by shirish »

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.14 Flashback.

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#14 Post by hadrons123 »

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
Loafers
Posts: 24
Joined: 2009-09-06 03:39

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#15 Post by Loafers »

build is outdated fyi

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#16 Post by hadrons123 »

I didn't try wheezy recently, but prebuilt binaries for jessie works fine for me. For some reason XFCE font rendering doesn't work as expected in jessie.

Edit:
I had to adjust the font settings in XFCE with slight hinting which seems to solve my rendering issues.
Last edited by hadrons123 on 2013-12-18 10:10, edited 2 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
Loafers
Posts: 24
Joined: 2009-09-06 03:39

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#17 Post by Loafers »

hadrons123 wrote:I didn't try wheezy recently, but prebuilt binaries for jessie works fine for me. For some reason XFCE font rendering doesn't work as expected in jessie.
i'm an idiot — didn't notice the new binaries in your original post. works fine now!

User avatar
Loafers
Posts: 24
Joined: 2009-09-06 03:39

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#18 Post by Loafers »

Visually I am not experiencing any problems, but the console constantly spams the following:

Code: Select all

ERROR: ld.so: object '/usr/lib//freetype-infinality/libfreetype.so.6.8.1' from LD_PRELOAD cannot be preloaded: ignored.
Anybody else experiencing this?

EDIT:

Okay I found this thread.

I checked /etc/profile.d/freetype-infinality and it has the necessary line:

Code: Select all

export LD_PRELOAD="/usr/lib/${DEB_HOST_MULTIARCH}/freetype-infinality/libfreetype.so.6.8.1:${LD_PRELOAD}"
However, I just noticed the error output says "/usr/lib//..." (two slashes); furthermore, /usr/lib/freetype-infinality does not even exist at all...

Any ideas suggestions :D?

rigr
Posts: 1
Joined: 2013-12-18 09:34

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#19 Post by rigr »

Loafers wrote:Visually I am not experiencing any problems, but the console constantly spams the following:

Code: Select all

ERROR: ld.so: object '/usr/lib//freetype-infinality/libfreetype.so.6.8.1' from LD_PRELOAD cannot be preloaded: ignored.
Anybody else experiencing this?

EDIT:

Okay I found this thread.

I checked /etc/profile.d/freetype-infinality and it has the necessary line:

Code: Select all

export LD_PRELOAD="/usr/lib/${DEB_HOST_MULTIARCH}/freetype-infinality/libfreetype.so.6.8.1:${LD_PRELOAD}"
However, I just noticed the error output says "/usr/lib//..." (two slashes); furthermore, /usr/lib/freetype-infinality does not even exist at all...

Any ideas suggestions :D?
I had to install the package dpkg-dev (which contains dpkg-architecture) to solve this problem. Try that :)

Btw, hadrons123, maybe you could add that people can run this command to configure the Infinality style:

Code: Select all

# bash /etc/fonts/infinality/infctl.sh setstyle

User avatar
hadrons123
Posts: 59
Joined: 2012-01-31 09:58
Location: NYC

Re: HOWTO install infinality font-settings for Debian

#20 Post by hadrons123 »

I assumed that infinality settings are the best and didn't see a need for setstyle option to set it up for different option. I shall edit my post as you suggest for the sake of users.
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

Post Reply