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 » 2016-09-18 20:55

BubuXP wrote:I'm courious about your results.


I dared to install your packages ;-) And i like the result very much!
“Have you tried turning it off and on again?”
User avatar
squeeze
 
Posts: 295
Joined: 2010-06-14 23:16
Location: thimbleweedpark

Re: HOWTO install infinality font-settings for Debian

Postby BubuXP » 2016-09-19 14:59

I compiled also the latest version of Fontconfig and patched it for best look when used with FreeType 2.7 (everything vanilla, no Infinality patches at the moment).
Basically, I enabled by default the full hinting (but you must enable it also in your desktop environment's fonts settings) and blacklisted the URW fonts (e.g. Nimbus). Other changes and details in the package changelog.

Download here:
https://drive.google.com/open?id=0B7AdL ... jJScGlWVGM

The sources compile just fine in OpenSuse build service, I tested it.
User avatar
BubuXP
 
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality font-settings for Debian

Postby stevepusser » 2016-09-19 17:35

More awesome stuff! Hey, do you mind if I add that to the test repository for MX 15 Linux?
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.0.6, Pale Moon 27.4.0, Liquorix kernel 4.11-9, mpv 0.25.0, Kodi 17.3, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8414
Joined: 2009-10-06 05:53

Re: HOWTO install infinality font-settings for Debian

Postby BubuXP » 2016-09-19 17:44

It's free software, you can do whatever you want until you respect the license :D
User avatar
BubuXP
 
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality font-settings for Debian

Postby stevepusser » 2016-09-19 18:46

BubuXP wrote:It's free software, you can do whatever you want until you respect the license :D


OK...I assume you mean until I "disrespect" the license.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.0.6, Pale Moon 27.4.0, Liquorix kernel 4.11-9, mpv 0.25.0, Kodi 17.3, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8414
Joined: 2009-10-06 05:53

Re: HOWTO install infinality font-settings for Debian

Postby BubuXP » 2016-09-20 06:57

stevepusser wrote:
BubuXP wrote:It's free software, you can do whatever you want until you respect the license :D


OK...I assume you mean until I "disrespect" the license.


Yes, change the "until" with "if" in my post to get what I mean (in Italian it sounds correct with "until" also, but probably it isn't :) ).

BTW, the Nimbus/URW fonts can be directly removed by uninstalling the packages "gsfonts" and "gsfonts-x11". They are installed because recommended by other packages, but the recommended dependencies can be removed (these packages only have a few hard-dependencies that you probably don't have installed).
User avatar
BubuXP
 
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: HOWTO install infinality font-settings for Debian

Postby bester69 » 2016-09-23 01:32

Hi,
Im some lost about how this is going on, right now i've installed infinality files:

fontconfig-infinality_1-2_all.deb
freetype-infinality_2.4.12-1_all.deb
libfreetype-infinality6_2.4.12-1_amd64.deb

Im using stretch debian, and im using a Windows7/10 configuration fonts:
- Segoe UI fonts (Windows10)


Can i improve my "Segoe UI fonts" installing something new/different??


regards.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: HOWTO install infinality font-settings for Debian

Postby jim_p » 2016-10-15 07:46

bester69 wrote:Hi,
Im some lost about how this is going on, right now i've installed infinality files:

fontconfig-infinality_1-2_all.deb
freetype-infinality_2.4.12-1_all.deb
libfreetype-infinality6_2.4.12-1_amd64.deb

Im using stretch debian, and im using a Windows7/10 configuration fonts:
- Segoe UI fonts (Windows10)


Can i improve my "Segoe UI fonts" installing something new/different??


regards.

The stuff you have installed is simply... ancient :P
Remove them and install their newer versions from here if you are on testing/unstable

https://drive.google.com/drive/folders/ ... jgtaGV5U2c

or here if you are on stable (jessie)
https://drive.google.com/drive/folders/ ... mM5TE5YVUE
jim_p
 
Posts: 24
Joined: 2008-02-07 14:07

Re: HOWTO install infinality font-settings for Debian

Postby Head_on_a_Stick » 2016-10-15 10:19

If you're tracking testing/unstable then try removing Infinality completely -- the latest FreeType release has incorporated a subset of the Infinality patches and works better than before, it may be good enough for you now.

Alternatively, get a 300dpi display and switch off autohinting, the font outline lines up with the rasterised grid at this resolution and the rendering should then be "perfect" :)

See also https://www.freetype.org/freetype2/docs ... nting.html
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: HOWTO install infinality font-settings for Debian

Postby bester69 » 2016-10-15 12:47

jim_p wrote:
bester69 wrote:Hi,
Im some lost about how this is going on, right now i've installed infinality files:

fontconfig-infinality_1-2_all.deb
freetype-infinality_2.4.12-1_all.deb
libfreetype-infinality6_2.4.12-1_amd64.deb

Im using stretch debian, and im using a Windows7/10 configuration fonts:
- Segoe UI fonts (Windows10)


Can i improve my "Segoe UI fonts" installing something new/different??


regards.

The stuff you have installed is simply... ancient :P
Remove them and install their newer versions from here if you are on testing/unstable

https://drive.google.com/drive/folders/ ... jgtaGV5U2c

or here if you are on stable (jessie)
https://drive.google.com/drive/folders/ ... mM5TE5YVUE

Nice!! :P , i installed them, they look almost the same, sometihngs seems better, others worse, perhaps a litle worse in my case right now, i shoul recalibrate the configuration for segoe-ui, and KDE5 settings fonts
- i installed Multiarch (all files)
- I set wm (windows preset)
- I choosed (windows7) in /etc/X11/Xsession.d/99infinality-settings

fc-presets check-->
30-metric-aliases-ms.conf is OK
37-repl-global-ms.conf is OK
60-latin-ms.conf is OK
65-non-latin-ms.conf is OK
66-aliases-wine-ms.conf is OK

Is it correect o is it missing something?
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: HOWTO install infinality font-settings for Debian

Postby bester69 » 2016-10-15 16:28

I went back to old version, tha new one seems unstable, and fonts looks a litle bit blurry, i tried diiferents calibrations
such as changind dpi, or KDE configuration, and even tried "ultimate's settings", and went back to old infinality's versions. Perhaps with other fonts that are not segoe-ui it looks better.

I think what i've got now cant be improved..


regards.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: HOWTO install infinality font-settings for Debian

Postby DebbyIan » 2016-11-30 11:35

BubuXP wrote:I compiled also the latest version of Fontconfig and patched it for best look when used with FreeType 2.7 (everything vanilla, no Infinality patches at the moment).
Basically, I enabled by default the full hinting (but you must enable it also in your desktop environment's fonts settings) and blacklisted the URW fonts (e.g. Nimbus). Other changes and details in the package changelog.

Download here:
https://drive.google.com/open?id=0B7AdL ... jJScGlWVGM

The sources compile just fine in OpenSuse build service, I tested it.


Unless there has been a recent modification to the sources for fontconfig and freetype, I am curious how you have managed to compile these sources without the updated libpng:

https://packages.debian.org/stretch/libpng16-16

Installing your packages, not that they have been named correctly for Debian bpo, requires libpng16-16 as dependency. Backporting libpng16-16 to jessie/stable results in the following compilation error:

Code: Select all
        make -j1 install DESTDIR=/tmp/libpng1.6-1.6.26/debian/tmp AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/tmp/libpng1.6-1.6.26'
make  install-am
make[2]: Entering directory '/tmp/libpng1.6-1.6.26'
/bin/bash ./libtool  --tag=CC   --mode=link gcc  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o pngtest pngtest.o libpng16.la -lm -lz -lm
libtool: link: gcc -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--as-needed -o .libs/pngtest pngtest.o  ./.libs/libpng16.so -lz -lm
/usr/bin/ld: pngtest.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
pngtest.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:983: recipe for target 'pngtest' failed
make[2]: *** [pngtest] Error 1
make[2]: Leaving directory '/tmp/libpng1.6-1.6.26'
Makefile:1908: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/tmp/libpng1.6-1.6.26'
dh_auto_install: make -j1 install DESTDIR=/tmp/libpng1.6-1.6.26/debian/tmp AM_UPDATE_INFO_DIR=no returned exit code 2
debian/rules:13: recipe for target 'binary' failed
make: *** [binary] Error 2
DebbyIan
 
Posts: 106
Joined: 2013-05-09 12:12

Re: HOWTO install infinality font-settings for Debian

Postby stevepusser » 2016-12-06 22:11

The MX Linux backports don't have that libpng problem.

http://main.mepis-deb.org/mx/repo/pool/main/f/

Building them on the vanilla Jessie virtual machines provided by the openSUSE Build Service also enforces that they are compatible.

https://software.opensuse.org/download. ... bfreetype6

These particular Freetype packages don't have to worry about having a "~bpo8" added to the end of the version to allow for the smooth upgrade to Stretch, since testing is frozen and it looks like 2.7 won't be in Stretch. The OBS claims they have a Debian:next Stretch build platform, but I can't find it.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.0.6, Pale Moon 27.4.0, Liquorix kernel 4.11-9, mpv 0.25.0, Kodi 17.3, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8414
Joined: 2009-10-06 05:53

Re: HOWTO install infinality font-settings for Debian

Postby joefso » 2017-01-15 19:57

can someone updated the infinality packages for stretch? I do not know how to do it myself.srry
joefso
 
Posts: 11
Joined: 2006-06-26 10:19

Re: HOWTO install infinality font-settings for Debian

Postby BubuXP » 2017-01-16 11:21

joefso wrote:can someone updated the infinality packages for stretch? I do not know how to do it myself.srry


The ones in my Google Drive are not working anymore?

It looks like bohoomil abandoned the project, no news from him since months.
I just find this page, I didn't read it thoroughly but looks like it contains some good info:
https://gist.github.com/cryzed/e002e705 ... 9e748c5671

However, I don't use Infinality, as I like the vanilla Freetype rendering with a good fontconfig configuration. And with 2.7+ versions, you can get an Infinality-like rendering enabling the full-hinting, but setting manually some font rendering is even better.
For example, Ubuntu font looks better with slight hinting, but if you set the default hinting to full, you can put a file like this in /etc/fonts/conf.d/ to tell the system to render Ubuntu font with slight hinting:

Code: Select all
$ cat /etc/fonts/conf.d/21-hint-ubuntu.conf

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>

  <!-- Ubuntu -->
  <match target="font">
    <test name="family">
      <string>Ubuntu</string>
    </test>
    <edit name="hintstyle">
      <const>hintslight</const>
    </edit>
    <edit name="autohint">
      <bool>false</bool>
    </edit>
  </match>

  <!-- Ubuntu Condensed -->
  <match target="font">
    <test name="family">
      <string>Ubuntu Condensed</string>
    </test>
    <edit name="hintstyle">
      <const>hintslight</const>
    </edit>
    <edit name="autohint">
      <bool>false</bool>
    </edit>
  </match>

  <!-- Ubuntu Mono -->
  <match target="font">
    <test name="family">
      <string>Ubuntu Mono</string>
    </test>
    <edit name="hintstyle">
      <const>hintslight</const>
    </edit>
    <edit name="autohint">
      <bool>true</bool>
    </edit>
  </match>

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

PreviousNext

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable