LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-05-2017, 08:27 AM   #1
Dauer
Member
 
Registered: Sep 2004
Location: Denmark
Distribution: Slackware 14.2
Posts: 40

Rep: Reputation: 20
Google Chrome fonts


Hi,
My first post here for a long time. I have been using Windows and other linux distributions for some time, but have come back to slackware again since it seems to be the only distribution I really enjoy.
I have installed 14.2 64bit and have tweaked the system the way I want it. I have used a lot of time on the fonts and have followed Dugan Chen remommendations http://duganchen.ca/writings/slackware/fonts/

The fonts on the system now look amazing except for some pages in google chrome and I can't figure out how to fix it.

The fonts here on this forum does not look very good. They are blurry and colour is missing on some letters. When I zoom in they look great again, but on 100% scaling it doesn't look good. In firefox it look fine.

Does anybody have the same problems or know what is causing it?
 
Old 03-05-2017, 09:13 AM   #2
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
1.Make sure you have subpixel rendering compiled into the freetype package. Uncoment appropriate line in Slackbuild

Quote:
zcat $CWD/freetype.illadvisederror.diff.gz | patch -p1 --verbose || exit 1

#zcat $CWD/freetype.subpixel.rendering.diff.gz | patch -p1 --verbose || exit 1
and recompile.

2.I like this fonts .Do not need M$ fonts.
https://slackbuilds.org/repository/1...em/noto-fonts/

and tutorial
http://www.binarytides.com/gorgeous-...-ubuntu-linux/

3. This is my custom /home/user/.config/fontconfig/fonts.conf:

https://ybin.me/p/61b819386466caae#u...tZATsAKT/yzf0=

4.Settings and result in Chrome:

http://www.hostmat.eu/images/75841301613699196944.png
http://www.hostmat.eu/images/11696530607546868830.png

this post

http://www.hostmat.eu/images/30447104349739651038.png

Tweak it for your needs and monitor.

Last edited by BratPit; 03-05-2017 at 09:34 AM.
 
3 members found this post helpful.
Old 03-05-2017, 11:21 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by Dauer View Post
colour is missing on some letters
wut

I've seen colors added (to the edges of the characters) when font settings are misconfigured. Missing colors I have not seen.

If it helps, my personal font setup is:

install webcore-fonts from SBo, making sure to remove /etc/fonts/conf.d/60-liberation.conf first

rebuild FreeType for full subpixel support

have at least the following in ~/.config/fontconfig/fonts.conf

Code:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
	<match target="font">`
		<edit mode="assign" name="antialias">
			<bool>true</bool>
		</edit>
		<edit mode="assign" name="hinting">
			<bool>true</bool>
		</edit>
		<edit mode="assign" name="hintstyle">
			<const>hintslight</const>
		</edit>
		<!-- Ignore any embedded bitmaps in TTF, etc (Microsoft's Calibri and others from Office 07/Vista have these) -->
		<edit mode="assign" name="embeddedbitmap">
			<bool>false</bool>
		</edit>
</fontconfig>
have at least the following in ~/.Xresources:

Code:
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
Make sure ~/.Xresources is loaded on X start. On the WMs I use, that means putting the following in a startup file:

Code:
xrdb -merge ~/.Xresources
symlink /etc/fonts/conf.avail/11-lcdfilter-default

And... I think that's it.

Last edited by dugan; 03-05-2017 at 11:29 AM.
 
4 members found this post helpful.
Old 03-05-2017, 11:49 AM   #4
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by dugan View Post
symlink /etc/fonts/conf.avail/11-lcdfilter-default
symlink this file to ... ? Please clarify, at least for the benefit of inexperienced users.

(Otherwise nice to see a summary here, because that fonts thread has grown way out of control.)
 
Old 03-05-2017, 12:13 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Symlink /etc/fonts/conf.avail/11-lcdfilter-default.conf to /etc/fonts/conf.d/11-lcdfilter-default.conf
 
2 members found this post helpful.
Old 03-05-2017, 06:11 PM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376
Hi Dugan

Like I mentioned on the "optimize fonts" post I am still using Infinality on 14.2, but like you I have dumped that now that sub pixel hinting is in the stock freetype making infinality obsolete IMO. I installed the latest -current in a virtual machine and instead of making a patch to enable subpixel hinting I used your sed line, however it doesn't seem to be working. I checked the source file and it was still commented out. I made my own sed line as a test that just adds the line instead of editing the existing line like this

sed -i "636i #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2" include/freetype/config/ftoption.h

This worked, but could you double check your sed line and see if its a problem on my end?
 
1 members found this post helpful.
Old 03-05-2017, 06:47 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Yeah, the sed didn't seem to work.

How about this?

To test:

Code:
sed 's/^\/\* \(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING\s\+2\)\s\+\*\/$/\1/g' include/freetype/config/ftoption.h | less
In the script:

Code:
sed -i 's/^\/\* \(#define TT_CONFIG_OPTION_SUBPIXEL_HINTING\s\+2\)\s\+\*\/$/\1/g' include/freetype/config/ftoption.h

Last edited by dugan; 03-05-2017 at 06:52 PM.
 
Old 03-05-2017, 06:57 PM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,687

Rep: Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376Reputation: 1376
That worked. Everything is cool now
 
Old 03-06-2017, 01:24 PM   #9
Dauer
Member
 
Registered: Sep 2004
Location: Denmark
Distribution: Slackware 14.2
Posts: 40

Original Poster
Rep: Reputation: 20
Hi,
Thank you for all the answers. As I mentioned in the post I followed dugan's suggestions from his site and everything looks really great except from some pages in chrome. Here are a screenshot from firefox and chrome. The difference is quite clear.

https://ibb.co/i4NJka
http://ibb.co/goor5a
 
Old 03-06-2017, 03:44 PM   #10
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
There is difference how both browsers display fonts but is neglible in my configuration
described above without M$ fonts. Maybe Firefox do it better :-)
But it's a matter of taste.

CHROME
http://www.hostmat.eu/images/31581788919063055903.png
Firefox
http://www.hostmat.eu/images/67659788741899194055.png

Last edited by BratPit; 03-06-2017 at 03:49 PM.
 
Old 03-07-2017, 09:42 AM   #11
Dauer
Member
 
Registered: Sep 2004
Location: Denmark
Distribution: Slackware 14.2
Posts: 40

Original Poster
Rep: Reputation: 20
Both screenshots from you configuration looks great. I cannot tell the difference as you can on mine. I also use the Droid and Noto fonts and have also copied you impressive fonts.conf file without any effect.
I think I might have done something wrong in my configuration. When I set up the fonts I erased all the links in /etc/conf.d/ and only linked sub-pixel-rgb and lcdfilter-default from /etc/conf.avail.

Should I link any other files ?
 
Old 03-07-2017, 10:28 AM   #12
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
1. /etc/fonts/conf.d

2. Firefox font settings

3. Check default system Sans which use FF.
 
1 members found this post helpful.
Old 03-07-2017, 10:56 AM   #13
Dauer
Member
 
Registered: Sep 2004
Location: Denmark
Distribution: Slackware 14.2
Posts: 40

Original Poster
Rep: Reputation: 20
Yes !!
Now it works. I linked the files from your settings back to conf.d and moved .config/fontconfig/fonts.conf to ~.fonts.conf because fc-match did not match with Noto.

The fonts look perfect now

Thank you for the help.
 
Old 03-09-2017, 05:40 AM   #14
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
@Dauer

FAntastic.

Consider rename 50-user.conf to 98-user.conf in /etc/fonts/ to make sure other settings no override your custom settings.

If you use my custom fonts.conf , I have changed some broken and missing things for better render internet fonts.

http://pastebin.com/bYns0u1F
 
Old 03-09-2017, 09:47 AM   #15
Dauer
Member
 
Registered: Sep 2004
Location: Denmark
Distribution: Slackware 14.2
Posts: 40

Original Poster
Rep: Reputation: 20
Okay, done
Thanks.

Last edited by Dauer; 03-09-2017 at 09:48 AM.
 
  


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
LXer: Chrome OS is not dead, insists Google veep in charge of Chrome OS LXer Syndicated Linux News 0 10-31-2015 05:11 AM
LXer: Google Releases Chrome 44 Stable for Windows, Mac OS X, Linux, and Chrome OS LXer Syndicated Linux News 0 07-21-2015 07:03 PM
Google Chrome New Tab Page (!)= Chrome OS Desktop Kenny_Strawn Linux - General 6 02-19-2011 05:36 PM
Google Chrome fonts became different Mr. Alex Linux - Software 2 07-13-2010 01:53 AM
[SOLVED] Google Chrome tab fonts are gigantic and I can't fix it... lupusarcanus Linux - Newbie 5 03-22-2010 10:49 PM

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

All times are GMT -5. The time now is 05:06 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