Fonts after upgrade

Post your update and upgrade related errors here
Forum rules
Before you post please read how to get help

Re: Fonts after upgrade

Postby rolandpish on Thu Sep 20, 2012 2:21 pm

I want to thank Monsta for the work as well. I confirm that it is working for my LMDE+Xfce!! (I had to restart for the changes to take effect)

The only difference is that I specified the absolute path when creating the symbolic links, for example:

Code: Select all
ln -s /etc/fonts/conf.avail/10-antialias.conf /etc/fonts/conf.d/10-antialias.conf


(I remember having issues in the past when using relative paths (../ and similar) in symbolic links)

Thanks again!
rolandpish
Level 2
Level 2
 
Posts: 59
Joined: Sun Jul 25, 2010 4:33 pm

Linux Mint is funded by ads and donations.
 

Re: Fonts after upgrade

Postby BucolicBuffalo on Thu Sep 20, 2012 8:30 pm

Thank You! Thank You! Ran it in a root terminal and rebooted. Looking great now.


Monsta wrote:Thinking out loud about what I've just read when I followed GeneC's links... :D

1. Reconfiguring fontconfig-config just changes a few symlinks in /etc/fonts/conf.d to point to the appropriate (depending on what has been chosen during the reconfiguration) files in /etc/fonts/conf.avail.
2. Ubuntu's fontconfig-config package has additional symlinks which are missing in Debian's one. For example, 11-lcdfilter-default.conf. Look at the file list and see for yourself.
3. I suspect that setting things in ~/.fonts.conf works only if there is the respective symlink in /etc/fonts/conf.d. For example, the lcdfilter option won't do anything unless you have /etc/fonts/conf.d/11-lcdfilter-default.conf pointing to ../conf.avail/11-lcd-filter-lcddefault.conf. This is just my speculation, please correct me if I'm wrong.

So here's what I've done. I didn't reconfigure fontconfig-config, didn't install Ubuntu's version of it, didn't even create and edit ~/.fonts.conf.
Just made a little script that makes all the missing symlinks (I hope I didn't miss any of them myself) and ran it as root.

Code: Select all
#!/bin/sh

WHOAMI=`whoami`
if [ x$WHOAMI != xroot ]; then
    echo Please run me as root.
    exit 1
fi

cd /etc/fonts/conf.d

ln -s ../conf.avail/10-antialias.conf 10-antialias.conf
ln -s ../conf.avail/10-hinting.conf 10-hinting.conf
ln -s ../conf.avail/10-hinting-slight.conf 10-hinting-slight.conf
ln -s ../conf.avail/11-lcdfilter-default.conf 11-lcdfilter-default.conf
ln -s ../conf.avail/53-monospace-lcd-filter.conf 53-monospace-lcd-filter.conf

Font quality got better. Immediately.

Though I have some doubts about some of the fonts (not all of them) in Firefox. And I don't use Chrome.
Moreover, my eyes are quite tired from today's tinkering with all this font stuff, so I may have missed something. Just test this script please and see if it works for you. :)
BucolicBuffalo
Level 1
Level 1
 
Posts: 13
Joined: Sat Mar 10, 2012 8:15 am

Re: Fonts after upgrade

Postby clod81 on Thu Sep 20, 2012 8:37 pm

font on firefox are alright for me
chrome looking really bad, no idea how to fix it
clod81
Level 1
Level 1
 
Posts: 6
Joined: Tue Sep 18, 2012 7:08 pm

Re: Fonts after upgrade

Postby Monsta on Fri Sep 21, 2012 2:42 am

Out of curiosity, I've installed Chrome in my virtual LMDE machine and saw the fonts aren't that bad. Maybe a little worse than in Firefox. What's looking equally bad in both browsers is some bold fonts, e.g. the top menu bar on google's main page.

You can try what GeneC said, i.e. editing ~/.fonts.conf (and maybe even ~/.Xdefaults - I really don't know what settings Chrome may look at :D).
It didn't do any good for me though, the fonts are looking the same as they were after I've applied my script.
Monsta
Level 9
Level 9
 
Posts: 2513
Joined: Fri Aug 19, 2011 3:46 am

Re: Fonts after upgrade

Postby killer de bug on Fri Sep 21, 2012 2:05 pm

Monsta,

I really thing you have found a very nice solution. I created the links and the fonts are looking far better now.

Thanks a lot, I will make a backup of these lines right now ! :mrgreen:


edit : typos
If I have seen further it is by standing on the shoulders of giants. [Isaac Newton]
User avatar
killer de bug
Level 7
Level 7
 
Posts: 1922
Joined: Tue Jul 08, 2008 1:49 pm
Location: Austria

Re: Fonts after upgrade

Postby sackofspuds on Sat Sep 22, 2012 4:44 pm

Monsta wrote:Just made a little script that makes all the missing symlinks (I hope I didn't miss any of them myself) and ran it as root.

Code: Select all
#!/bin/sh

WHOAMI=`whoami`
if [ x$WHOAMI != xroot ]; then
    echo Please run me as root.
    exit 1
fi

cd /etc/fonts/conf.d

ln -s ../conf.avail/10-antialias.conf 10-antialias.conf
ln -s ../conf.avail/10-hinting.conf 10-hinting.conf
ln -s ../conf.avail/10-hinting-slight.conf 10-hinting-slight.conf
ln -s ../conf.avail/11-lcdfilter-default.conf 11-lcdfilter-default.conf
ln -s ../conf.avail/53-monospace-lcd-filter.conf 53-monospace-lcd-filter.conf

Font quality got better. Immediately.

Though I have some doubts about some of the fonts (not all of them) in Firefox. And I don't use Chrome.
Moreover, my eyes are quite tired from today's tinkering with all this font stuff, so I may have missed something. Just test this script please and see if it works for you. :)


Thanks a million, Monsta. Worked very well.

By way of background I updated to update 5 today and made the mistake of installing some new versions, against the advice of the release notes:

Always choose "keep file" (as opposed to "install new version")

Anyhow, perhaps as a result, the fonts were horrible in Chromium. Monsta's script appears to have restored them.

Out of interest, my Terminal application also displayed black on black, ie, invisible. I've opened a new post on that - viewtopic.php?f=198&t=113073
sackofspuds
Level 1
Level 1
 
Posts: 13
Joined: Sat Sep 17, 2011 5:57 am

Re: Fonts after upgrade

Postby Dave W. on Sun Sep 23, 2012 8:04 am

Sorry if these are really stupid obvious questions, but how do I use Monsta's script? Do I just put it in the terminal as root?

Also, what if I saved the font settings on a thumb drive and then swapped them out with the updated fonts. Could/would that work?

Thanks,
Dave
LMDE cinnamon 64 bit
Manjaro 0.8.8 Ascella Gnome amd64
Dave W.
Level 2
Level 2
 
Posts: 64
Joined: Wed Apr 07, 2010 9:15 pm
Location: Pennsylvania, USA

Re: Fonts after upgrade

Postby killer de bug on Sun Sep 23, 2012 8:15 am

The simplest is to execute all the line starting by ln -S one by one as this in a terminal :

sudo ln -S ....


OR : you can copy the text in a file, and save it let say on the desktop as "file.sh". Then you need to make this file executable :
in a terminal type sudo chmod a+x /desktop/file.sh

Then cd /desktop
And $ sudo file.sh

I think it should work ;)
If I have seen further it is by standing on the shoulders of giants. [Isaac Newton]
User avatar
killer de bug
Level 7
Level 7
 
Posts: 1922
Joined: Tue Jul 08, 2008 1:49 pm
Location: Austria

Re: Fonts after upgrade

Postby Dave W. on Sun Sep 23, 2012 9:36 am

Thank you killer de bug. It most certainly looks much better. :D

Thank you too Monsta for the fix. :D

Dave
LMDE cinnamon 64 bit
Manjaro 0.8.8 Ascella Gnome amd64
Dave W.
Level 2
Level 2
 
Posts: 64
Joined: Wed Apr 07, 2010 9:15 pm
Location: Pennsylvania, USA

Re: Fonts after upgrade

Postby clod81 on Sun Sep 23, 2012 4:33 pm

after symlinking and reboot, chrome is looking good again.
8)
clod81
Level 1
Level 1
 
Posts: 6
Joined: Tue Sep 18, 2012 7:08 pm

Re: Fonts after upgrade

Postby Monsta on Mon Sep 24, 2012 1:58 am

Well I guess you can now mark this thread as [SOLVED] :)
Monsta
Level 9
Level 9
 
Posts: 2513
Joined: Fri Aug 19, 2011 3:46 am

Linux Mint is funded by ads and donations.
 
Previous

Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 7 guests