LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-05-2018, 05:16 PM   #526
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by Daedra View Post
You can get infinality for slackware here, https://github.com/archfan/bob-infinality-bundle. All you have to do after you download the zip file is simply run ./install.sh and the script will do the rest. You will have to install lxml before you can install infinality. You can get that here. https://slackbuilds.org/repository/14.2/python/lxml/
Is this different than rebuilding freetype with the subpixel rendering patch enabled? I'm still not terribly happy with my fonts on 14.2 after rebuilding freetype (but I might be missing more options -- I'll have to look at that over this weekend).
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-05-2018, 07:09 PM   #527
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
It depends, IMO you basically have two options with 14.2. You can use infinality, or you can take the freetype slackbuild from -current and build freetype-2.7.1 with the subpixel rendering patch enabled and doing steps 2, 3, and 4 from this post. https://www.linuxquestions.org/quest...ml#post5744886. Either way will give you basically the same results. Keep in mind you can't use freetype 2.8 or 2.8.1 from current because they don't build on 14.2, but the slackbuild from -current will build 2.7.1 just fine.

I still use infinality on 14.2, but did the second option on -current since infinality is now obsolete. Both ways looks 99% identical to me.

But to answer you original question if you just rebuilt freetype-2.6.3 from 14.2 and nothing else, then yes, it would not look as good as infinality. 2.7.0 was the first release to have the infinality patches merged into the source.

Last edited by Daedra; 01-05-2018 at 08:01 PM.
 
1 members found this post helpful.
Old 01-07-2018, 09:34 AM   #528
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
I just updated through slackpkg [chose Prompt and then overwrote] and I noticed a number of font update changes. On rebooting I think that Infinality isn't working any more. As well as that, I can't find any packages like six or html5lib using slackpkg search. I can't find lxml either.

Looks like I may have to reinstall lxml and Infinality.

EDIT: reinstalled, all is good now.

Last edited by Lysander666; 01-07-2018 at 03:55 PM.
 
Old 01-07-2018, 04:42 PM   #529
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Daedra View Post
But to answer you original question if you just rebuilt freetype-2.6.3 from 14.2 and nothing else, then yes, it would not look as good as infinality. 2.7.0 was the first release to have the infinality patches merged into the source.
That would explain it... I rebuilt 2.6.3 with it enabled and not 2.7.1. I also apparently never created the .Xresources file (although, I did setup those symlinks). I just compiled 2.7.1 and created my .Xresources, so next time I reboot my computer, hopefully things will be looking better.

Thanks!
 
Old 01-07-2018, 05:25 PM   #530
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by Lysander666 View Post
I just updated through slackpkg [chose Prompt and then overwrote] and I noticed a number of font update changes. On rebooting I think that Infinality isn't working any more. As well as that, I can't find any packages like six or html5lib using slackpkg search. I can't find lxml either.

Looks like I may have to reinstall lxml and Infinality.

EDIT: reinstalled, all is good now.
Yes you will need to edit /etc/slackpkg/blacklist and blacklist freetype,fontconfig,cairo. Otherwise slackpkg will overwrite them to the stock slackware packages.
 
1 members found this post helpful.
Old 01-07-2018, 05:31 PM   #531
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by Daedra View Post
Yes you will need to edit /etc/slackpkg/blacklist and blacklist freetype,fontconfig,cairo. Otherwise slackpkg will overwrite them to the stock slackware packages.
Thanks, that makes a lot of sense. I'll read up on how to do it.
 
Old 01-07-2018, 05:58 PM   #532
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by bassmadrigal View Post
That would explain it... I rebuilt 2.6.3 with it enabled and not 2.7.1. I also apparently never created the .Xresources file (although, I did setup those symlinks). I just compiled 2.7.1 and created my .Xresources, so next time I reboot my computer, hopefully things will be looking better.

Thanks!
Let us know if it works ok. Here is a screenshot for people to see, one side in 14.2 with infinality and the other is 14.2 with just freetype-2.7.1 with the symlinks and .Xresources file. Ill let people guess which is which.

https://www.dropbox.com/s/0t64ah1nme...ality.png?dl=0
 
Old 01-23-2019, 01:21 PM   #533
max-user
LQ Newbie
 
Registered: Jan 2018
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Daedra View Post
Let us know if it works ok. Here is a screenshot for people to see, one side in 14.2 with infinality and the other is 14.2 with just freetype-2.7.1 with the symlinks and .Xresources file. Ill let people guess which is which.

https://www.dropbox.com/s/0t64ah1nme...ality.png?dl=0
Hi.

Freetype 2.9.1 /freetype/include/freetype/config/ftoption.h

I am wondering how this works:

Quote:
/* By undefining these, you get rendering behavior like on Windows */
/* without ClearType, i.e., Windows XP without ClearType enabled and */
/* Win9x (interpreter version v35). Or not, depending on how much */
/* hinting blood and testing tears the font designer put into a given */
/* font. If you define one or both subpixel hinting options, you can */
/* switch between between v35 and the ones you define (using */
/* `FT_Property_Set'). */
/*

AFAIU If a user want to get interpreter_version_v35

/* By undefining these, you get rendering behavior like on Windows */
/* without ClearType, i.e., Windows XP without ClearType enabled and */
/* Win9x .

he should do this

Code:
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  1         */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  2 */       
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 ) */
True ?

But what does this mean ?
/* ... If you define one or both subpixel hinting options, you can
/* switch between between v35 and the ones you define (using `FT_Property_Set').


How to "define one or both subpixel hinting options" ?
How to "switch between between v35 and the ones" the user defines ?
 
Old 01-23-2019, 06:52 PM   #534
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by max-user View Post
Hi.

Freetype 2.9.1 /freetype/include/freetype/config/ftoption.h

I am wondering how this works:




AFAIU If a user want to get interpreter_version_v35

/* By undefining these, you get rendering behavior like on Windows */
/* without ClearType, i.e., Windows XP without ClearType enabled and */
/* Win9x .

he should do this

Code:
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  1         */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  2 */       
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 ) */
True ?

But what does this mean ?
/* ... If you define one or both subpixel hinting options, you can
/* switch between between v35 and the ones you define (using `FT_Property_Set').


How to "define one or both subpixel hinting options" ?
How to "switch between between v35 and the ones" the user defines ?
I am going to assume you are using -current? Freetype-2.9.1 won't compile on 14.2. You can set which interpreter version you want by editing /etc/profile.d/freetype.sh. By default is uses version 40, if you want to use 35 or 38, then you simply have to uncomment the line you want to use. However this won't enable subpixel rendering. To enable that you either have to do it in your Desktop Environments font settings or this is how I enable subpixel rendering on -current

https://www.linuxquestions.org/quest...8/#post5940716
 
Old 01-23-2019, 07:25 PM   #535
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by Daedra View Post
Let us know if it works ok. Here is a screenshot for people to see, one side in 14.2 with infinality and the other is 14.2 with just freetype-2.7.1 with the symlinks and .Xresources file. Ill let people guess which is which.

https://www.dropbox.com/s/0t64ah1nme...ality.png?dl=0
I'll be 100% honest here: I'm having trouble picking the difference.

The stock setup is certainly much better than it used to be.
 
Old 01-23-2019, 07:49 PM   #536
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by rkelsen View Post
I'll be 100% honest here: I'm having trouble picking the difference.

The stock setup is certainly much better than it used to be.
I basically did the comparison to show people that infinality is more or less obsolete, however there is still people who swear by infinality.
 
1 members found this post helpful.
Old 01-24-2019, 03:11 AM   #537
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
Quote:
Originally Posted by Daedra View Post
I basically did the comparison to show people that infinality is more or less obsolete, however there is still people who swear by infinality.
I'm one of them - I use Infinality with every install. I can certainly tell the difference.

I think it's relative to who's using the setup. For instance, the font rendering on my dad's Mint machine looks dreadful to me, but he doesn't seem to notice. I suppose it just depends what you're used to.
 
Old 01-24-2019, 03:17 AM   #538
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
How to Optimize Fonts in Slackware

Depends on the hardware too. On a Dell XPS with HiDPI display the stock setup looks great with no tweaking at all. Certainly no worse than either of the examples posted above.
 
Old 01-24-2019, 02:09 PM   #539
max-user
LQ Newbie
 
Registered: Jan 2018
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by Daedra View Post
I am going to assume you are using -current?
I use 14.2 but I want to understand how 2.9.1 (current=>slackware-15) works.

Quote:
Originally Posted by Daedra View Post
Freetype-2.9.1 won't compile on 14.2. You can set which interpreter version you want by editing /etc/profile.d/freetype.sh. By default is uses version 40, if you want to use 35 or 38, then you simply have to uncomment the line you want to use.
Ok, I see

Code:
#!/bin/sh
# Configure Freetype properties. Here this is used to set the default mode
# for font hinting. Other controllable properties are listed in the section
# 'Controlling FreeType Modules' in the reference's table of contents.
#
# Three hinting settings are available:

# This is the classic hinting mode used in Freetype 2.6.x:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=35"

# This is Infinality mode, which was never enabled by default. It is slower
# than the new subpixel hinting mode, but said to be more accurate:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=38"

# This is the new default subpixel hinting mode used in Freetype 2.7.x. It is
# derived from the Infinality code base stripped to the bare minimum with all
# configurability removed in the name of speed and simplicity:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=40"
AFAIU if a user want to get v35, he should uncomment the line
Code:
# This is the classic hinting mode used in Freetype 2.6.x:
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
But should the user (he want to get v35) make changes to the source code i.e. should the user recompile freetype with
Code:
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  1         */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  2 */       
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 ) */
?

I ask this because 2.9.1 says
Code:
/* By undefining these, you get rendering behavior like on Windows       */
/* without ClearType, i.e., Windows XP without ClearType enabled and     */
/* Win9x (interpreter version v35).  Or not, depending on how much       */
/* hinting blood and testing tears the font designer put into a given    */
/* font.  If you define one or both subpixel hinting options, you can    */
/* switch between between v35 and the ones you define (using             */
/* `FT_Property_Set').  

/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  1         */
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING  2
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 ) */
 
Old 01-24-2019, 04:25 PM   #540
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Original Poster
Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by max-user View Post
I use 14.2 but I want to understand how 2.9.1 (current=>slackware-15) works.



Ok, I see

Code:
#!/bin/sh
# Configure Freetype properties. Here this is used to set the default mode
# for font hinting. Other controllable properties are listed in the section
# 'Controlling FreeType Modules' in the reference's table of contents.
#
# Three hinting settings are available:

# This is the classic hinting mode used in Freetype 2.6.x:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=35"

# This is Infinality mode, which was never enabled by default. It is slower
# than the new subpixel hinting mode, but said to be more accurate:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=38"

# This is the new default subpixel hinting mode used in Freetype 2.7.x. It is
# derived from the Infinality code base stripped to the bare minimum with all
# configurability removed in the name of speed and simplicity:
#export FREETYPE_PROPERTIES="truetype:interpreter-version=40"
AFAIU if a user want to get v35, he should uncomment the line
Code:
# This is the classic hinting mode used in Freetype 2.6.x:
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
But should the user (he want to get v35) make changes to the source code i.e. should the user recompile freetype with
Code:
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  1         */
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  2 */       
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 ) */
?

I ask this because 2.9.1 says
Code:
/* By undefining these, you get rendering behavior like on Windows       */
/* without ClearType, i.e., Windows XP without ClearType enabled and     */
/* Win9x (interpreter version v35).  Or not, depending on how much       */
/* hinting blood and testing tears the font designer put into a given    */
/* font.  If you define one or both subpixel hinting options, you can    */
/* switch between between v35 and the ones you define (using             */
/* `FT_Property_Set').  

/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  1         */
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING  2
/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING  ( 1 | 2 ) */
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
If I were to recompile & arch-optimize Slackware, where to begin? GrapefruiTgirl Slackware 124 06-22-2007 09:46 PM
How to Optimize Slackware 10.2? zeroz52 Slackware 23 10-04-2005 06:42 PM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration