Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HOWTO install infinality font-settings for Debian

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author


User avatar
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: HOWTO install infinality font-settings for Debian

#33 Post by squeeze »

“Have you tried turning it off and on again?”

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

Re: HOWTO install infinality font-settings for Debian

#34 Post by hadrons123 »

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
squeeze
Posts: 299
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: HOWTO install infinality font-settings for Debian

#35 Post by squeeze »

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
BubuXP
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality font-settings for Debian

#36 Post by BubuXP »

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.

DebbyIan
Posts: 158
Joined: 2013-05-09 12:12

Re: HOWTO install infinality for Debian Wheezy i386, amd64

#37 Post by DebbyIan »

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.

jochen
Posts: 13
Joined: 2012-10-29 15:25

Re: HOWTO install infinality font-settings for Debian

#38 Post by jochen »

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

User avatar
Mad_7
Posts: 111
Joined: 2010-01-09 21:05
Location: Patra, Greece, Europe.

Re: HOWTO install infinality font-settings for Debian

#39 Post by Mad_7 »

Hi! :D

Did someone succeded, building Infinality Ultimate (bohoomil's) for Wheezy?
G.

dysnomia
Posts: 2
Joined: 2015-03-27 15:16

Re: HOWTO install infinality font-settings for Debian

#40 Post by dysnomia »

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.

DebbyIan
Posts: 158
Joined: 2013-05-09 12:12

Re: HOWTO install infinality font-settings for Debian

#41 Post by DebbyIan »

What's the difference between plain and iu packages?

User avatar
BubuXP
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality font-settings for Debian

#42 Post by BubuXP »

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.

dysnomia
Posts: 2
Joined: 2015-03-27 15:16

Re: HOWTO install infinality font-settings for Debian

#43 Post by dysnomia »

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

gkop
Posts: 1
Joined: 2015-07-09 18:19

Re: HOWTO install infinality font-settings for Debian

#44 Post by gkop »

I just wanted to say THANK YOU to jochen for the packages in http://forums.debian.net/viewtopic.php? ... 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!

kenwong
Posts: 53
Joined: 2015-02-14 14:52
Location: Hong Kong

Re: HOWTO install infinality font-settings for Debian

#45 Post by kenwong »

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

Thank you.

eriksatie
Posts: 15
Joined: 2012-01-10 00:29

Re: HOWTO install infinality font-settings for Debian

#46 Post by eriksatie »

Debian testing user here. Is there a simple instructions to put infinality fonts on this machine? Is the OP instructions still usable?

DebbyIan
Posts: 158
Joined: 2013-05-09 12:12

Re: HOWTO install infinality font-settings for Debian

#47 Post by DebbyIan »

Please stop polluting this thread with user support requests.

Start a new thread instead.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: HOWTO install infinality font-settings for Debian

#48 Post by bester69 »

i used:
infinality.sh--> Windows7
infctl.sh --> Win7

forcing 96 PPP
Hint: Medium RGB
lcdlegacy
antialias
not autohint

I linked Windows 10 fonts truetype directory ( /usr/share/fonts/truetype/sudo ln -s /sda1/Windows/FONTS)
I set infinallity settings and compared to Windows 10 vs Debian Jessie same document, by taking some captures but i cant match the fonts, don you know what can be the problem??

Image
subir fotos gratis

Image
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Brainey
Posts: 1
Joined: 2015-09-18 06:58

Re: HOWTO install infinality font-settings for Debian

#49 Post by Brainey »

KDE with kdm display manager don't load all infinality settings. :( If you want use infinality, just migrate on lightdm.

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: HOWTO install infinality font-settings for Debian

#50 Post by bester69 »

Brainey wrote:KDE with kdm display manager don't load all infinality settings. :( If you want use infinality, just migrate on lightdm.
its seems true, i installed lightdm and fonts looks much better than with kdm, my fonts now match almost 95% windows fonts. thanks a lot, now im using lightdm.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply