LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to Optimize Fonts in Slackware (https://www.linuxquestions.org/questions/slackware-14/how-to-optimize-fonts-in-slackware-640468/)

max-user 01-26-2019 05:03 AM

Quote:

Originally Posted by Daedra (Post 5953127)
Yes you are correct, just uncomment the line for the interpreter you want to use. And you do not have to recompile anything on -current/15.0. The code you are referring to is simply saying you can choose at compile time a single interpreter you want to use or you can enable them all and choose the one you want. Pat has enabled them all and allows you to choose the one you want by editing the /etc/profile.d/freetype.sh file.

Ok, AFAIU v35 is already enabled in 2.9.1 (since 2.5 ?) by default.
+
freetype.SlackBuild enables v38 and v40 with the line 'zcat $CWD/freetype.compile.both.subpixel.hinting.methods.diff.gz'

=> A slackware user can switch between the default v35 and v38,v40.
True ?

slalik 01-26-2019 02:32 PM

Quote:

Originally Posted by Daedra (Post 5952780)
Freetype-2.9.1 won't compile on 14.2.

It compiled here without any problem.

max-user 02-22-2019 01:51 AM

fontconfig 2.11.1 of 14.2 does not have rules in /etc/fonts/conf.avail for hintstyles (hintnone, hintslight, hintmedium, hintfull).
Why ? Is this a bug ?
How to fix that ?

max-user 03-27-2019 02:03 AM

There is infinality-remix for freetype-2.10 here https://github.com/pdeljanov/infinality-remix
depends:
freetype - 2.10.0
cairo - 1.16.0
fontconfig - 2.13.1

How to install infinality-remix in slackware ?
Can someone make a slackbuild for it ?

Alien Bob 03-27-2019 04:44 AM

max-user, you should ask yourself if patching several of the Slackware core packages with this Infinality stuff is going to create any added value.

As indicated by several other people in this topic, you will get similar font rendering with the built-in V38 rendering engine of freetype. Infinality patches will only add more configurable options. However, if you stick to the open fonts used in Slackware, you will not even need Infinality. These patches are meant to make the Microsoft fonts and other old proprietary fonts look good on Linux. Just do not use them, switch to Liberation Fonts instead.

Read:
https://www.freetype.org/freetype2/d...l-hinting.html
https://gist.github.com/cryzed/e002e...894b9e748c5671

Daedra 03-31-2019 05:27 PM

Quote:

Originally Posted by max-user (Post 5978211)
There is infinality-remix for freetype-2.10 here https://github.com/pdeljanov/infinality-remix
depends:
freetype - 2.10.0
cairo - 1.16.0
fontconfig - 2.13.1

How to install infinality-remix in slackware ?
Can someone make a slackbuild for it ?

As I and Alien Bob said above, infinality is obsolete with Slackware 15. That being said there are still people who swear by it, so for fun today I ported the link you gave into Slackbuilds for -current. I used bob-infinality-bundle from archfan and rfmae as a template. A couple of things for anyone who wants to try out these builds.

READ BELOW BEFORE YOU TRY!!

1) I provide no guarantees this wont bork your system. I tested it on a fresh -current VM and it works fine, but YMMV.
2) I am not providing any tech support or future updates to this. Take it and do your own thing with it. I am done after this.
3) This is for -current, if you are using 14.2 then use https://github.com/archfan/bob-infinality-bundle
4) As I have stated before, I have tested this and there is absolutely no difference between infinality and stock slackware -current with a few symlinks from conf.avail. But there are people who simply wont accept or believe this.

Here is the Slackbuild. Install lxml from SBo first, then run ./install.sh
https://www.dropbox.com/s/ow52bkkxx3...15.tar.gz?dl=0

Candelabrus 04-23-2019 10:35 PM

2 Attachment(s)
It might just be placebo, but i still think infinality fonts are prettier than the standard way. You can also see in QT applications.

Well, here another option for anyone, I will keep as much as possible.

https://gitlab.com/grinder/infinality-fonts

And here two comparisons.
Standard : https://postimg.cc/r0ysxWfw
Infinality : https://postimg.cc/yDkskFTB

Sources:
https://github.com/pdeljanov/infinality-remix
https://github.com/nihilismus/bob-infinality-bundle

rkelsen 04-25-2019 05:15 AM

Of those two images, the standard one looks clearer to me. Are you sure that you have them the right way around?

Lysander666 04-25-2019 05:30 AM

Quote:

Originally Posted by rkelsen (Post 5988359)
Of those two images, the standard one looks clearer to me. Are you sure that you have them the right way around?

That's what I thought too.

-current does not need Infinality, in my experience, whereas 14.2 does.

rkelsen 04-25-2019 07:04 PM

Quote:

Originally Posted by Lysander666 (Post 5988367)
That's what I thought too.

-current does not need Infinality, in my experience, whereas 14.2 does.

Yes, that's because -current uses a version of freetype which has subpixel hinting enabled by default, where 14.2 does not.

I believe that this is due to the expiry of certain patents after the release of Slackware 14.2, but am not 100% certain about it.

Candelabrus 04-25-2019 08:55 PM

Quote:

Originally Posted by rkelsen (Post 5988359)
Of those two images, the standard one looks clearer to me. Are you sure that you have them the right way around?

You were right, Microsoft fonts were interfering with quality. I replaced the image in my previous post and now you can see better. Tell me what you think please

rkelsen 04-25-2019 09:08 PM

It didn't make much difference. The main place I notice differences in these things are characters with diagonals, i.e: W, /, etc. These still appear clearer to me in your standard screen shot.

But it's is all subjective, and there are many variables at hand. You need to do whatever works for you!

Candelabrus 04-25-2019 09:13 PM

Quote:

Originally Posted by rkelsen (Post 5988596)
It didn't make much difference. The main place I notice differences in these things are characters with diagonals, i.e: W, /, etc. These still appear clearer to me in your standard screen shot.

But it's is all subjective, and there are many variables at hand. You need to do whatever works for you!

Thanks for answer, i agree, each one uses the way the eye finds it best, but it's clear that with infinality it does not have those "brittle" and is smoother too.

dugan 05-23-2019 04:31 PM

These days, my setup is just this, in ~/.Xresources:

Code:

Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

Xft.dpi: 160

The dpi is at 160 because it's an HTPC.

Daedra 05-23-2019 04:39 PM

Basically the same here. Added these to conf.d
Quote:

10-hinting-slight.conf
11-lcdfilter-default.conf
my ~/.Xresources
Quote:

Xft.dpi: 96
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
Xft.rgba: rgb
Xft.autohint: 0
Thins have certainly gotten a lot easier since this post began 11 years ago lol.


All times are GMT -5. The time now is 01:52 PM.