LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware current: some help to get an identical font rendering as 14.2 (https://www.linuxquestions.org/questions/slackware-14/slackware-current-some-help-to-get-an-identical-font-rendering-as-14-2-a-4175658275/)

camerabambai 07-30-2019 07:33 AM

Slackware current: some help to get an identical font rendering as 14.2
 
I really like the font rendering of Slackware 14.2
Imho is the best rendering, better than many other distros.
I use on 14.2 those settings

Code:

fonts: deja-vu sans book 10
hinting: slight
dpi: 96x96

On the current I see the font rendering very bad after upgrading the freetype package from 2.8 to latest current.
For tryng to reach the good rendering as 14.2 I have modify this script

Code:

/etc/profile.d/freetype.sh

export FREETYPE_PROPERTIES="truetype:interpreter-version=35"

The result is good..but I still think on 14.2 is really, really better (sometimes on current and other distros with latest freetype I have some eyes "burning" because bad rendering)
Some suggestions to get the same rendering as 14.2?

allend 07-30-2019 07:07 PM

Have you seen /etc/fonts/conf.d/README ? Perhaps a hinting or subpixel rendering setting will improve your experience. It is always hard to give advice on this, as the experience is subjective and hardware can be variable.

EdGr 07-30-2019 08:09 PM

Edit /etc/fonts/conf.d/60-latin.conf to pick the DejaVu fonts over the Liberation fonts. The DejaVu fonts are easier to read and edit because the characters are wider.
Ed

TheRealGrogan 07-31-2019 12:44 PM

Yeah, I don't care for those liberation fonts. It took me a while to figure out why my fonts looked different on this slackware-current. It was mostly in Firefox where I was unhappy, when certain fonts were called for.

I tried changing the order and stuff in those files, and had it almost the way I wanted it, but certain forum fonts still didn't look right (to me). I ended up removing every TTF font except the Deja Vu family. Perfect... it's different configurations of those fonts that I am used to.

I was comparing everything in Manjaro and I had everything the same in Slackware, the symlinks, the ordering, but the difference was, in Manjaro I only had the Deja Vu family installed. I had to install legacy fonts for things like urxvt and stuff, but never got around to any other TTF. Good then.

P.S. I should also note that I use the dreaded bytecode interpreter (not really necessary anymore with modern freetype, it's pretty close, but I'm used to it) and lcd filter.

solarfields 07-31-2019 02:55 PM

I had the same adventures with fonts on -current:
https://slackalaxy.com/2019/04/17/fr...-hinting-mode/
I did what you did and in the end specified the DejaVu fonts in my browser and text editor... I have hinting 'full' and sub-pixel order 'None', but i guess that's all a matter of preference.

Lysander666 07-31-2019 03:20 PM

I have found the default rendering to be pretty much excellent on -current. On 14.2 I had to install Infinality which I haven't had to do on -current.

I imagine some of it may come down to your DE, I use Xfce with Sans font and slight hinting on RGB. I use Vivaldi browser with a few modifications to text size relative to my setup.

But you can drive yourself mad with font rendering. Sometimes it's worth stepping away from the computer, because you'll tie yourself in knots over it. As long as it's generally smooth enough, your mind will adjust to it, that's where most of the 'rendering' happens.

EdGr 08-01-2019 07:27 AM

Here is a comparison of the DejaVu, Liberation, and Luxi fonts. If you step back from your monitor, you can see that DejaVu remains readable at greater distances.
Ed

https://www.edgrochowski.com/photos-...nts-8-1-19.png

mlangdn 08-02-2019 05:38 AM

My FF fonts have looked terrible for a while. Yesterday, I changed in System Settings to enable anti-aliasing, changed hinting to slight, and to force font dpi to 96. I already had fonts set to Deja-Vu Sans Book. That was the best thing I've done in a while.

I have -current in VBox also. Everything there is set to Vendor Default, and there is no problem with fonts. That may also be due to the Nvidia GT 730 card with the Nvidia blob installed. VBox uses its own graphics stuff.

lioh 08-07-2019 06:11 AM

1 Attachment(s)
I figured out that the best way to go for me was to set Hinting to slight in Xfce which decreases the height of the fonts a little bit:

Attachment 31058

left is default / right is with Hinting: slight.

As the fonts still looked way to small for me, I have increased the size for both, the default font and the Monospace font to 11. Within Settings > Windows Manager I have set the Title font size to 10 (Sans Bold).

Lioh

lioh 08-08-2019 05:38 AM

2 Attachment(s)
An alternate approach to mimic the old font-rendering behavior of Slackware 14.2 is to edit /etc/fonts/conf.d/60-latin.conf and to modify it that DejaVu fonts are listed before Liberation:

Attachment 31066

Afterwards one has to modify /etc/profile.d/freetype.sh as described in camerabambai's post.

Code:

export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
Within Xfce Hint-mode has to be set to full. The default font sizes (10) match the settings of 14.2, so there is no need to change them.

Here is a screenshot comparing the results:

Attachment 31067

Have Phun
Lioh

camerabambai 10-11-2019 09:34 AM

The last solution seems to works fine, but I prefer the hinting not full

Poprocks 10-11-2019 01:28 PM

Also, if you have the corefonts installed, I'd recommend deleting the symlink at /etc/fonts/conf.d/60-liberation.conf

philanc 10-11-2019 02:14 PM

Quote:

Originally Posted by Lysander666 (Post 6020258)
As long as it's generally smooth enough, your mind will adjust to it, that's where most of the 'rendering' happens.

Good point! :)

djunzu 09-29-2020 04:09 PM

Quote:

Originally Posted by lioh (Post 6022858)
An alternate approach to mimic the old font-rendering behavior of Slackware 14.2 is to edit /etc/fonts/conf.d/60-latin.conf and to modify it that DejaVu fonts are listed before Liberation:

Attachment 31066

Afterwards one has to modify /etc/profile.d/freetype.sh as described in camerabambai's post.

Code:

export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
Within Xfce Hint-mode has to be set to full. The default font sizes (10) match the settings of 14.2, so there is no need to change them.

Here is a screenshot comparing the results:

Attachment 31067

Have Phun
Lioh

Just created an account to say: thanks, @lioh!! You saved my eyes!

I already have Xfce antialiasing e full hint mode.
Changing /etc/fonts/conf.d/60-latin.conf was the most important for me.
Changind /etc/profile.d/freetype.sh was just the cherry on the cake.

camerabambai 03-01-2021 01:12 PM

Solution found, I use on current the old /etc/fonts dir from slackware 14.2 enable export FREETYPE_PROPERTIES="truetype:interpreter-version=35" in the /etc/profile.d/freetype.sh script and after 10-15 days the fonts are nice as 14.2


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