You are not logged in.

#1 2013-06-25 22:36:15

cgrif
Member
Registered: 2013-06-17
Posts: 18

[SOLVED] How to reset system font settings

HI All,

In my efforts to get decent looking fonts, I have somehow ended up with a system where the fonts are always sub-optimal no matter what I do.   I installed DejaVu-ttf and also the Infinality font set.
I'm not sure how Infinality is supposed to work, but the impression I got from reading instructions is that it is a drop-in replacement of the system fonts, but now that I have mucked with things too much I'm not sure I'm seeing the best result I can get.

Is there a way to just reset my KDE font config to the default (hopefully without resetting my entire desktop)?
Thanks,
Chris

Last edited by cgrif (2013-07-20 04:20:06)

Offline

#2 2013-06-25 23:05:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] How to reset system font settings

I'm sure you can just remove all configuration files in your $HOME directory.  So this would be ~/.fonts.conf (deprecated anyway), and anything in ~/.config/fonts.  Then resintall the fontconfig packages (infinality if that is what you have/want) to ensure that the things in /etc/fonts/conf.d are symlinked to the default things in /etc/fonts/conf.avail.

For super easy font configuration, you should try bohoomils font packages https://bbs.archlinux.org/viewtopic.php?id=162098 as bohoomil is crazy about fonts and does a great job providing quality custom infinality configurations.  I have been using his setup for quite some time (even before the packaged all this stuff so nicely), and couldn't be happier.  Beware though that if you go this route, kde does some strange shit on its own and create's its own ~/.fonts.conf.  There is apparently a way to stop this though... it is in the thread (I think it was cfr who faced and solved the problem).

Offline

#3 2013-07-16 18:26:52

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

HI All,

I am going to mark this unsolved just for a while.   My font rendering in the System and KDE looks great now.   But I'm still quite unhappy with the fonts in Libre Office and web browsers.
I followed the guidelines for installing bohoomils font packages.   I don't know if this should have an effect on fonts in the browser.

Many thanks for any further guidance.

Chris

Offline

#4 2013-07-16 18:56:40

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] How to reset system font settings

cgrif wrote:

I'm still quite unhappy with the fonts in Libre Office and web browsers.I followed the guidelines for installing bohoomils font packages.   I don't know if this should have an effect on fonts in the browser.

Well, this is actually where you should experience the difference in the first place. Did you see the screenshots @ my GitHub account (see my signature)? What does your browser font rendering look like?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2013-07-16 19:05:15

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

bohoomil wrote:

Well, this is actually where you should experience the difference in the first place. Did you see the screenshots @ my GitHub account (see my signature)? What does your browser font rendering look like?

Thanks for your reply.   I will compare and show something when I get home later this evening ;-)

Offline

#6 2013-07-17 00:18:01

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

bohoomil wrote:
cgrif wrote:

I'm still quite unhappy with the fonts in Libre Office and web browsers.I followed the guidelines for installing bohoomils font packages.   I don't know if this should have an effect on fonts in the browser.

Well, this is actually where you should experience the difference in the first place. Did you see the screenshots @ my GitHub account (see my signature)? What does your browser font rendering look like?

So here are some snapshots of my font's I would like to look better:

http://picpaste.com/snapshot1-Gu10REP0.png
http://picpaste.com/snapshot2-ecyBOLaT.png

As you cansee, a lot of the page looks fine, but the text in the posting box and the text in the news article looks aweful.

Thanks!
Chris

Offline

#7 2013-07-17 01:02:48

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] How to reset system font settings

First of all, I'm not sure what your KDE font settings look like. I believe you've left everything as is, so open your control panel and duplicate the values from /etc/fonts/conf.d/10-base-rendering.conf in the appropriate section. This should include hintstyle=slight, antialias=true, subpixel order=rgb, dpi=96. You may try using hintstyle=full if necessary.

Next, check your xft settings. You should see the following:

$ env | grep Xft

Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:        96
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb

If the output is different, put the values above to your .Xresources file and make sure it gets loaded with your desktop. This should basically duplicate the values you have already set in your KDE control panel.

Next, check if your fontconfig settings are loaded properly. Simply run 'env | grep INFINALITY' and if you get a list of entries starting with INFINALITY_FT_, then everything is OK.

Finally, try changing your default fonts. DejaVu is fine as a backup family, but using it as a base one is not a good idea. If you have access to Win 7/8 fonts, use them. If not, check Liberation, ChromesOS or Droid families. Install them all and set the defaults in $HOME/.config/fontconfig/conf.d/65-latin.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <!-- ## serif ## -->
  <alias>
    <family>serif</family>
    <prefer>
      <family>Liberation Serif</family>
    </prefer>
  </alias>
  <!-- ## sans-serif ## -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Liberation Sans</family>
    </prefer>
  </alias>
  <!-- ## monospace ## -->
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Liberation Mono</family>
    </prefer>
  </alias>

</fontconfig>

If you are going to use Windows fonts and don't want to change anything, you don't need this file. By the way, you can find it along with other examples in the infinality-bundle documentation.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#8 2013-07-18 01:49:38

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [SOLVED] How to reset system font settings

Not sure about this but if you are using KDE, you might do better to set your choice of fonts using the KDE settings since otherwise KDE will just fight with your configuration anyway. I set my preference there and it seems to work fine, at least. At any rate, if the .conf file doesn't seem to change things, try setting the fonts in KDE settings as well. [I happen to like Droid even though I've got Windows 7 fonts installed so I wanted to override the defaults.]

EDIT: On reflection, you might need both if you don't have Windows 7/8 fonts or don't wish to use them (I'm not sure if I'm using them but am fine with whatever I'm using). KDE's font settings are more specific though it may default to using the default for sans/serif/mono etc. For example, I have:

General Droid Serif 9
Fixed width Droid Sans 9
Small Droid Serif 8
Toolbar Droid Serif 8
Menu Droid Serif 9
Window title Droid Serif 8
Taskbar Droid Serif 9
Desktop Droid Serif 9

In KDE's font settings, as well as matching the default values for rendering mentioned above. [I'm not recommending these choices, by the way. I'm weird - most people would probably pick sans. But just that what is here will affect the KDE interface, I think, and is worth bearing in mind. I'm not sure what "General" does, to be honest.]

Last edited by cfr (2013-07-18 01:56:25)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-07-19 02:06:17

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

Thank you Boohomil,

I set up the .Xresources with the code you included, but even if I xrdb it directly, I cannot see the xft stuff in the output of env.  Not sure what's wrong with that. 

However, I set up everything else the way you recommended and things are looking a bit better.   I actually have messed with the KDE font settings, but following cfr's advice, I just set everything to Liberation as in the xml code.   

For some reason the fonts look much better when I run Gnome than KDE, which bothers me immensely.  I moved to Arch because I want to learn to have control of everything, but it looks like I'm kind of stuck on the fonts!   No worries, I'll keep chipping away at it as I have time.   

Thanks a lot,
Chris


bohoomil wrote:

First of all, I'm not sure what your KDE font settings look like. I believe you've left everything as is, so open your control panel and duplicate the values from /etc/fonts/conf.d/10-base-rendering.conf in the appropriate section. This should include hintstyle=slight, antialias=true, subpixel order=rgb, dpi=96. You may try using hintstyle=full if necessary.

Next, check your xft settings. You should see the following:

$ env | grep Xft

Xft.antialias:  1
Xft.autohint:   0
Xft.dpi:        96
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb

If the output is different, put the values above to your .Xresources file and make sure it gets loaded with your desktop. This should basically duplicate the values you have already set in your KDE control panel.

Next, check if your fontconfig settings are loaded properly. Simply run 'env | grep INFINALITY' and if you get a list of entries starting with INFINALITY_FT_, then everything is OK.

Finally, try changing your default fonts. DejaVu is fine as a backup family, but using it as a base one is not a good idea. If you have access to Win 7/8 fonts, use them. If not, check Liberation, ChromesOS or Droid families. Install them all and set the defaults in $HOME/.config/fontconfig/conf.d/65-latin.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <!-- ## serif ## -->
  <alias>
    <family>serif</family>
    <prefer>
      <family>Liberation Serif</family>
    </prefer>
  </alias>
  <!-- ## sans-serif ## -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Liberation Sans</family>
    </prefer>
  </alias>
  <!-- ## monospace ## -->
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Liberation Mono</family>
    </prefer>
  </alias>

</fontconfig>

If you are going to use Windows fonts and don't want to change anything, you don't need this file. By the way, you can find it along with other examples in the infinality-bundle documentation.

Offline

#10 2013-07-19 03:10:17

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] How to reset system font settings

cgrif wrote:

env | grep Xft

That's blank for me too, so don't worry - e.g. my Xft.hintstyle setting still affects Skype. I believe the real command is:

xrdb -query
cgrif wrote:

fonts look much better when I run Gnome than KDE

KDE doesn't properly use fontconfig sad

Offline

#11 2013-07-19 12:20:07

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

brebs wrote:
cgrif wrote:

fonts look much better when I run Gnome than KDE

KDE doesn't properly use fontconfig sad

So what is there to do?  Use Gnome?  I'm tempted...

Offline

#12 2013-07-19 13:05:10

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] How to reset system font settings

XFCE works fine, that's what I use wink

Offline

#13 2013-07-19 15:55:08

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

brebs wrote:

XFCE works fine, that's what I use wink

To be honest, I am growing to enjoy the Gnome 3 experience, but I also LOVE KDE and so I cannot tolerate having my fonts being ugly in KDE even if I'm primarily using Gnome.

How anal retentive is that?  Well, hopefully that makes a little bit of sense.  Maybe it makes no sense and just illustrates some degree of mental imbalance on my part, so be it.   Or maybe I'd be back using KDE if the fonts didn't look so crappy.    Mind you, most of the fonts look great, it's only the browser fonts when visiting certain websites that look horrendous.   I don't understand the world of fonts, it may be worth investing 3 or 4 hours to just read and understand everything I can find on the wiki, but it's not something I really want to be an expert on, i just want it to work better.

I'm also playing around with Fedora, and the default fonts in Fedora look spectacular ;-)

Chris

Offline

#14 2013-07-19 21:52:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [SOLVED] How to reset system font settings

Maybe it really is a KDE thing, then. My fonts in Fedora do not look as good as my fonts in Arch though I use KDE on both. Different hardware, though. (But Arch is on a laptop which doesn't generally improve things.)

On the other hand, my text box fonts don't look like yours but seem more like the fonts on the page. I am not sure how KDE and Firefox interact. Is KDE controlling the font rendering in Firefox?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#15 2013-07-19 21:59:46

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] How to reset system font settings

cfr wrote:

font rendering in Firefox

The missing ingredient is sadly commented out in Arch's firefox:

$ grep cairo *
mozconfig:#ac_add_options --enable-system-cairo

So uncomment, and recompile firefox, adding this firefox patch: 6009_fix_system_cairo_support.patch from Gentoo.

Offline

#16 2013-07-20 04:19:50

cgrif
Member
Registered: 2013-06-17
Posts: 18

Re: [SOLVED] How to reset system font settings

Thanks all.  Fonts are looking better.

Offline

#17 2013-07-20 21:29:11

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [SOLVED] How to reset system font settings

brebs wrote:
cfr wrote:

font rendering in Firefox

The missing ingredient is sadly commented out in Arch's firefox:

$ grep cairo *
mozconfig:#ac_add_options --enable-system-cairo

So uncomment, and recompile firefox, adding this firefox patch: 6009_fix_system_cairo_support.patch from Gentoo.

Mmm... thanks. I wonder if this is why my fonts do not look like those in the pic but actually better. I am using Mozilla's binary and not Arch's because Arch's does not support my preferred interface language. Maybe better looking fonts are a useful side-effect?

EDIT:

$ ldd /usr/local/stow/firefox-22.0-cy/lib/firefox/browser/components/libbrowsercomps.so  | grep cairo
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007fea5d49b000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007fea5cf2f000)

Last edited by cfr (2013-07-20 21:32:49)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB