SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have also tried in other browsers like Chrome, but it results the same. For testing purposes I have set up a Debian VM and within that, the website is displayed correctly.
Hmm, I was not planning to use Infinality. I have set up : export FREETYPE_PROPERTIES="truetype:interpreter-version=35" which works the best for me and have defined DejaVu as my preferred font. When I look at this page, it makes use of a strange commercial font like:
When I remove the "FrutigerNextW01-Regular" part the fonts are somehow displayed correctly. So there must be a font configuration around which replaces unknown fonts with 'not-so-good-looking' ones. This is what I would like to find out.
What is a bit difficult for me to understand is that normally, if the given font is not detected on the system, the browser should fall to the next available in the list. In this case it would be sans-serif which is available on Slackware.
You can set font preferences in the browser and tell it to not use other
fonts. Just go for the standard options and see if you like it.
I tried the page in your first post (with page chosen fonts) and the fonts
look somewhat ok on a 4k monitor in seamonkey. Perhaps that is what the
webdeveloper imagined everyone has.
To me, it looks like a hinting issue.
I suggest that the OP tries in turn each of the possible slight, medium and full hinting configurations by creating the symlink for each configuration in /etc/fonts/conf.d
e.g. (as root, from within the /etc/fonts/conf.d directory)
Also, check that the subpixel layout for your monitor is correct, as detailed under "Font Configuration" in the excellent webpage from @dugan linked by @Slackovado in post #2.
Is infinality still a thing? I haven't touched it in years and my fonts are all good...
I don't even think I've got it installed anymore.
I don't yeah.
Yes, it's still a thing. The infinality mode is built into freetype now... controllable by editing/uncommenting a variable in /etc/profile.d/freetype.sh (and/or freetype.csh for appropriate shells). Not enabled by default.
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"
Yes, it's still a thing. The infinality mode is built into freetype now... controllable by editing/uncommenting a variable in /etc/profile.d/freetype.sh (and/or freetype.csh for appropriate shells). Not enabled by default.
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"
That's right, Infinality with the Microsoft core fonts results in excellent font rendering.
Sadly, it takes a bit of time and effort investment to achieve understanding of all the components that come into play and to configure them correctly.
It's kind of a "right of passage" for Linux users, sort of what configuring Xserver used to be back in the day.
Yes. It's too bad that 15+ years after decent font rendering has come to Linux, that manual intervention is still required.
For me, installing the corefonts, including Tahoma, Calibri and Cambria, and deleting the symlink /etc/fonts/conf.d/60-liberation.conf is an absolute must to ensure that those dreadful Liberation fonts are neither seen nor heard.
Yes. It's too bad that 15+ years after decent font rendering has come to Linux, that manual intervention is still required.
Is it? I've not manually tweaked anything font related for quite some time.
Quote:
Originally Posted by Poprocks
For me, installing the corefonts, including Tahoma, Calibri and Cambria, and deleting the symlink /etc/fonts/conf.d/60-liberation.conf is an absolute must to ensure that those dreadful Liberation fonts are neither seen nor heard.
!
They look pretty good on my systems.
The fonts you mentioned are not licensed for use under Linux. They're not able to be packaged or distributed.
My goal is not really to switch to the propitiatory corefonts. As mentioned in my initial posting other distributions like Debian do not seem to have this issue, so it must be related to the fontconfig settings in Slackware. I still have not understood in which moment the rendering falls to such a strange mode. It must be related to the fact that the font cannot be found on the system.
@rogan setting the fonts manually in FF for all websites, now allowing web pages to set their own fonts, is not an option to me.
Another example is the website of my hoster: https://my.green.ch which forces 'HelveticaNeueW02-45Ligh' !important' and does not offer alternative fallback fonts. Still in such a case, the system should fall back to a default font imho (which is DejaVu in my case, not Liberation) but this process does not seem to work.
@allend The files 10-hinting-medium.conf etc are not available on my 14.2 box. I am going to check on -current as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.