HOWTO install infinality font-settings for Debian

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


Re: HOWTO install infinality font-settings for Debian

Postby squeeze » 2014-10-17 03:15

“Have you tried turning it off and on again?”
User avatar
squeeze
 
Posts: 285
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: HOWTO install infinality font-settings for Debian

Postby hadrons123 » 2014-10-17 03:20

Please read previous posts, for better understanding of infinality. Ubuntu font sets is not my target for this guide.
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: 54
Joined: 2012-01-31 09:58
Location: chennai

Re: HOWTO install infinality font-settings for Debian

Postby squeeze » 2014-10-17 03:34

Well sorry for beeing offtopic here but unfortunately the packages for jessie are very outdated and i'm too dumb (aka inexpierienced) to rebuild these packages for debian: https://launchpad.net/~rjvbertin/+archi ... inaltimate via https://wiki.debian.org/CreatePackageFromPPA. (cairo fails to configure with font-stamp error, fontconfig and freetype build just fine)

You're right though infinality is way better than my 'easy alternative'.

EDIT: It would be very appreciated if some debian geeks could do the job ;-)
“Have you tried turning it off and on again?”
User avatar
squeeze
 
Posts: 285
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: HOWTO install infinality font-settings for Debian

Postby BubuXP » 2014-10-27 01:16

squeeze wrote:EDIT: It would be very appreciated if some debian geeks could do the job ;-)

I'm not really a geek but I managed to build Infinality for Jessie (instruction inside).
This is the "old-school", original Infinality, although using bohoomil patches for freetype. Soon I'll try to build new packages using this whole new Infinality project.
User avatar
BubuXP
 
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality for Debian Wheezy i386, amd64

Postby DebbyIan » 2014-11-06 00:28

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

Image



I personally feel Pre looks better. Post is too smudged in my view.

Is there a good font recommendation which looks very sharp at around Size 8? It must be a Sans type.
DebbyIan
 
Posts: 97
Joined: 2013-05-09 12:12

Re: HOWTO install infinality font-settings for Debian

Postby jochen » 2015-01-13 19:58

I changed Xiao-Long Chen's Debian build to work with freetype 2.4.12 (newest Infinality patchset). If you follow the instructions in the first post, use my tgz for the freetype-infinality directory.

Freetype Infinality 2.4.12

And the compiled debs:

fontconfig-infinality
freetype-infinality
libfreetype-infinality6-amd64
jochen
 
Posts: 13
Joined: 2012-10-29 15:25

Re: HOWTO install infinality font-settings for Debian

Postby Mad_7 » 2015-01-16 12:49

Hi! :D

Did someone succeded, building Infinality Ultimate (bohoomil's) for Wheezy?
G.
User avatar
Mad_7
 
Posts: 95
Joined: 2010-01-09 21:05
Location: Patra, Greece, Europe.

Re: HOWTO install infinality font-settings for Debian

Postby dysnomia » 2015-03-27 18:50

August 12, 2015 --- Note: ibfonts-base fails to download some fonts
Code: Select all
  Symbola.zip download url is broken:
    download here:
    http://pkgs.fedoraproject.org/repo/pkgs/gdouros-symbola-fonts/Symbola.zip/9c8d59868988659dd7fd923c69433cd7/Symbola.zip
    create font folder if it does not exist: mkdir -p .font_downloads
    and copy the Symbola.zip there
  Noto fonts seems to have been updated:
    edit ibfonts-base_build.sh
    below the line:
      # Validate integrity of downloaded font archives   
        delete these lines:   
          e954b37fb20e858a48bb1da513d120ae26afa1189b10922d46486ff06967d074  NotoSans-hinted.zip
          3d23e8c04fdcfacfc9c2ea3abae0afbdd441cfbc3721b8b674e9d22fa92b97aa  NotoSerif-hinted.zip
        change:
          'numOfChecksums=8' to 'numOfChecksums=6'
        and delete line (or comment out):
          [[ $(($(find . -type f | wc -l)-1)) -eq $numOfChecksums ]] || { echo "$(basename $0): ERROR: Missing checksum or numOfKnownChecksums is wrong"; exit 1; }
  Run clean script and build script

April 19, 2015 --- Updated post + scripts (fontconfig-ultimate from March 31)
April 01, 2015 --- Updated post + fontconfig script


Hello!
Here are some handy scripts i made for building infinality-ultimate packages for jessie/sid.
I tested this only for amd64 but perhaps it works for i386 too.

Download

freetype 2.5.5
- update your system
- unpack, cd to the plain_freetype_package folder and run freetype_build.sh
- cd to the upper folder and run freetype_iu_build.sh to build the package with the infinality-ultimate patches (it uses the package source we built in the previous step)

fontconfig 2.11.1
- same procedure as for freetype but different script filenames ...

cairo 1.14.2
- to build it we need to install infinality-ultimate freetype and fontconfig first

ibfonts-base
- unpack and run ibfonts-base_build.sh

ibfonts-extended-lt (depends on ibfonts-base)
- same procedure as for ibfonts-base

ibfonts-extended (depends on ibfonts-base + ibfonts-extended-lt)
- same procedure as for ibfonts-base

(If googlefontdirectory returns an error when downloading, try again later... (and later...)) :evil:

------------------

Backup your current '~/.config/fontconfig/' folder, '~/.fonts.conf' and '/etc/fonts/' folder
Code: Select all
tar -czvf stock_fontsconf_backup.tar.gz /home/<username>/.config/fontconfig/ /home/<username>/.fonts.conf /etc/fonts/ /etc/profile.d/infinality-settings.sh

Make sure that the dependencies of the dev packages are installed
Code: Select all
apt-get install libpng12-dev zlib1g-dev libexpat1-dev pkg-config

Uninstall packages
Code: Select all
dpkg --purge --force-depends freetype2-demos libfreetype6 libfreetype6-dev

Code: Select all
dpkg --purge --force-depends fontconfig fontconfig-config libfontconfig1 libfontconfig1-dbg libfontconfig1-dev

Delete possible leftover files
Important: After doing this you cannot open new application/console windows since there is no font configuration. So don't close the console window until the new packages are installed ...
Code: Select all
rm -rf /home/<username>/.config/fontconfig/
rm -f  /home/<username>/.fonts.conf
rm -rf /etc/fonts/*
rm -f  /etc/profile.d/infinality-settings.sh

Install newly built packages
Code: Select all
dpkg -i libfreetype6_*d*b*amd64.deb libfreetype6-dev_*d*b*amd64.deb

Code: Select all
dpkg -i fontconfig_*d*b*amd64.deb fontconfig-config_*d*b*all.deb libfontconfig1_*d*b*amd64.deb libfontconfig1-dev_*d*b*amd64.deb

Reboot debian

------------------

Now we can build cairo
- unpack, and run cairo_iu_build.sh to build the package with the infinality-ultimate patches

Uninstall cairo packages
Code: Select all
dpkg --purge --force-depends cairo-perf-utils libcairo2 libcairo2-dbg libcairo2-dev libcairo2-doc libcairo-gobject2 libcairo-script-interpreter2

Install newly built cairo packages
Code: Select all
dpkg -i libcairo2_*d*b*amd64.deb libcairo-gobject2_*d*b*amd64.deb

Reboot debian

------------------

As normal user, check that the X resources and environment variables are set as defined in /etc/profile.d/infinality-settings.sh
Code: Select all
cat /etc/profile.d/infinality-settings.sh
xrdb -query | grep  'Xft.'; export | grep 'INFINALITY_FT'

If some X resource settings are missing, set them in your ~/.Xresources file. If the file does not exist, create it.
Append to ~/.Xresources :
Code: Select all
! infinality-ultimate
Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:        96
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb

Reboot debian, and check again. Now if all X resources are displayed but some values are wrong, try adjusting the
font settings in your desktop environment accordingly (subpixel on RGB, hinting on Full) and check again with
Code: Select all
xrdb -query | grep  'Xft.'

------------------

To remove infinaltiy / revert back to stock packages:

Delete ~/.Xresources or revert changes

Uninstall packages
    dpkg --purge ...... commands (see above)
    and delete possible leftover files (see above)
Restore backup
    extract stock_fontsconf_backup.tar.gz to /
Install stock packages
Code: Select all
apt-get install -f

------------------

Locations of some files

    Settings file:
    /etc/profile.d/infinality-settings.sh
    conf.avail.infinality:
    /usr/share/fontconfig/conf.avail.infinality/

    Additional *.conf files:
    /usr/share/fontconfig/fonts-settings/
    /usr/share/doc/fontconfig-config/infinality-ultimate/

    Generic infinality-settings:
    /usr/share/doc/libfreetype6/infinality-ultimate/
------------------

Install infinality-bundle font collections

---

ibfonts-base
Uninstall conflicting stock font packages
Code: Select all
dpkg --purge --force-depends fonts-dejavu fonts-dejavu-core fonts-dejavu-extra fonts-liberation fonts-noto

Install ibfonts-base
Code: Select all
dpkg -i ibfonts-base*.deb

---

ibfonts-extended-lt
Uninstall conflicting stock font packages
Code: Select all
dpkg --purge --force-depends fonts-cantarell fonts-crosextra-caladea fonts-crosextra-carlito fonts-droid fonts-texgyre

Install ibfonts-extended-lt
Code: Select all
dpkg -i ibfonts-extended-lt*.deb

---

ibfonts-extended
Uninstall conflicting stock font packages
Code: Select all
dpkg --purge --force-depends fonts-lohit-guru

Install ibfonts-extended
Code: Select all
dpkg -i ibfonts-extended_1*.deb

------------------

To remove infinality-bundle font collections / revert back to stock packages:

Uninstall packages
Code: Select all
dpkg --purge --force-depends ibfonts-base ibfonts-extended-lt ibfonts-extended

Install stock packages
Code: Select all
apt-get install -f

------------------

And that's all :wink:
Last edited by dysnomia on 2015-08-11 22:49, edited 2 times in total.
dysnomia
 
Posts: 2
Joined: 2015-03-27 15:16

Re: HOWTO install infinality font-settings for Debian

Postby DebbyIan » 2015-06-18 10:04

What's the difference between plain and iu packages?
DebbyIan
 
Posts: 97
Joined: 2013-05-09 12:12

Re: HOWTO install infinality font-settings for Debian

Postby BubuXP » 2015-06-25 10:28

dysnomia wrote:Settings file:
/etc/profile.d/infinality-settings.sh


I rename infinality-settings.sh to 99infinality-settings and place it in /etc/X11/Xsession.d/ because last time I checked, Debian didn't process the scripts in /etc/profile.d/ (but maybe now has changed).

One must consider also that /etc/profile.d/ is processed even if a X session isn't started, while infinality without an X session is useless. So placing the settings file in /etc/X11/Xsession.d/ as above should be the correct manner.
User avatar
BubuXP
 
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality font-settings for Debian

Postby dysnomia » 2015-07-08 11:41

BubuXP wrote:I rename infinality-settings.sh to 99infinality-settings and place it in /etc/X11/Xsession.d/ because last time I checked, Debian didn't process the scripts in /etc/profile.d/ (but maybe now has changed).


I tryed that, did not work for me on KDE, so i decided to put it in /etc/profile.d where it gets executed at least (but obviously before the xserver has been started)
to set the environment variables and put the xserver variables in ~/.Xresources. Even with this solution KDE partially overwrites the xserver variables later with its own settings
stored in ~/.config/fontconfig/fonts.conf. So one must make sure the anti-aliasing settings in 'System Settings->Application Appearence->Fonts' do match!

btw, i got initially inspired by your work to make these script
dysnomia
 
Posts: 2
Joined: 2015-03-27 15:16

Re: HOWTO install infinality font-settings for Debian

Postby gkop » 2015-07-09 18:24

I just wanted to say THANK YOU to jochen for the packages in viewtopic.php?f=16&t=88545&start=30#p566078 .

I tried several other suggestions, which did improve on the default Jessie fonts, but these ^^ packages yielded me the same BEAUTIFUL infinality fonts that I had become accustomed to on Wheezy (imo this font rendering is more beautiful than any others I have ever seen, including windows and OSX :D ) So happy!
gkop
 
Posts: 1
Joined: 2015-07-09 18:19

Re: HOWTO install infinality font-settings for Debian

Postby kenwong » 2015-08-16 13:28

Anybody using testing (stretch) and having installed infinality? How should I install infinality on stretch?

Thank you.
kenwong
 
Posts: 49
Joined: 2015-02-14 14:52
Location: Hong Kong

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable