You are not logged in.

#1 2012-09-07 02:05:38

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

[SOLVED] FontConfig Update and Anti-Aliasing

After doing upgrade of fontconfig exactly like explained on news here;
http://www.archlinux.org/news/fontconfi … -required/

Font became too thin, I think anti-aliasing is working wrong now. I've even added this:
https://wiki.archlinux.org/index.php/Fo … igurations

Also, my appearance settings is:

Default Font: Sans / Size: 10

Rendering: Enabled anti-aliasing

Hinting: Full

Sub-pixel order: None

DPI: Custom DPI setting 96

Here is few examples:

ArchLinux.org -- http://i.imgur.com/O7ZEC.png
Google.com -- http://i.imgur.com/TaY5S.png
Slashdot.org -- http://i.imgur.com/U8Oto.png
Digg.com -- http://i.imgur.com/TtgsM.png

Is there anyhting else I can do to fix this ?

Last edited by TuxLyn (2012-09-08 04:41:23)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#2 2012-09-07 02:14:21

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

This one kind of helped > https://wiki.archlinux.org/index.php/Fo … g_Examples

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
    <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>
</fontconfig>

Basic config with no hinting for italic or bold and some other tuning > antialias or hinting.

But I think its still not the same, after I upgraded. sad

Last edited by TuxLyn (2012-09-07 02:16:18)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#3 2012-09-07 05:26:02

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 4

Re: [SOLVED] FontConfig Update and Anti-Aliasing

For me the solution was

 mkdir ~/.config/fontconfig
 mv ~/.fonts.conf fonts.conf
 ln -s ~/.config/fontconfig/fonts.conf  .fonts.conf # just for compatibility with KDE

Offline

#4 2012-09-07 05:54:33

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

@kfl62, can you post your fonts.conf ?


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#5 2012-09-07 19:40:51

AnnS
Member
From: Venezuela
Registered: 2011-06-27
Posts: 45

Re: [SOLVED] FontConfig Update and Anti-Aliasing

My fonts were also looking bad after the upgrade (the same as in your screenshots), what I did:

mv .fontconfig .config/fontconfig
mv .fonts.conf .config/fontconfig/fonts.conf
mkdir .config/fontconfig/conf.d
ln -s /etc/fonts/conf.avail/10-sub-pixel-rgb.conf .config/fontconfig/conf.d  ## Though this wasn't really necessary.

Moved all cache files from .config/fontconfig (formerly ~/.fontconfig) to ~/.cache, as suggested in the wiki.

And I copied this in my fonts.conf (.config/fontconfig/fonts.conf), examples you can also find in the wiki:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font" >
    <edit mode="assign" name="autohint">  <bool>true</bool></edit>
    <edit mode="assign" name="hinting">   <bool>false</bool></edit>
    <edit mode="assign" name="lcdfilter"> <const>lcddefault</const></edit>
    <edit mode="assign" name="hintstyle"> <const>hintslight</const></edit>
    <edit mode="assign" name="antialias"> <bool>true</bool></edit>
    <edit mode="assign" name="rgba">      <const>rgb</const></edit>
  </match>

  <match target="font">
    <test name="pixelsize" qual="any" compare="more"><double>15</double></test>
    <edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
    <edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
  </match>

  <match target="font">
    <test name="weight" compare="more"><const>medium</const></test>
    <edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
    <edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
  </match>

<match target="font">
    <test name="slant"  compare="not_eq"><double>0</double></test>
    <edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
    <edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
  </match>

  <match target="font">
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
    <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
  </match>

</fontconfig>

Now my fonts look like before, and Chromium looks even better, thanks to one of the examples found. smile


Acer Aspire 7741G-6426 | Intel Core i5-480M 2.66GHz | 8GB RAM DDR3 1333MHz | 640GB HDD 5400RPM | AMD Radeon 6550M 1GB DDR3 |

Lenovo 3000 C200 | Intel Core 2 Duo T5500 1.66GHz | 2GB RAM DDR2 667MHz | 250GB HDD 5400RPM | Intel GMA 950 |

Offline

#6 2012-09-08 03:29:10

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

@AnnS, This helped a bit, but font still does not look the same as before.
I might have to do complete re-install now to get the same results as before sad

http://i.imgur.com/1WzeZ.png

Last edited by TuxLyn (2012-09-08 03:51:49)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#7 2012-09-08 03:54:14

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: [SOLVED] FontConfig Update and Anti-Aliasing

^^You just have to play around with it a little until you get something that looks good on your monitor. There really is no single solution that will fit everybody. This should be the section that deals with bold:

<match target="font">
    <test name="weight" compare="more"><const>medium</const></test>
    <edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
    <edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
  </match>

Maybe try changing some of the variables and see what you get.

Offline

#8 2012-09-08 04:29:14

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

This line in there seems to help:

<edit name="autohint" mode="assign"><bool>false</bool></edit>

::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#9 2012-09-08 04:40:36

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

This is weird, I think I got my font working like it used to now. Here is what I've done:

Copied whole /etc/fonts/ directory from my earlier installed netbook, to my desktop after I completly removed /etc/fonts/ on my desktop of course. Then I simply created empty ~/.fonts.conf file with just a body like this:

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

</fontconfig>

and no /etc/fonts/local.conf file eather.

After all that, I run this command:

# cd /etc/fonts/conf.d
# ln -s ../conf.avail/10-sub-pixel-rgb.conf

Now I have the font back or at least the closes I can to what I had previously before fontconfig upgrade. It looks like previously I have removed and linked wrong files. Oh, also when you configure ~/.fonts.conf or even /etc/fonts/local.conf you don't even need to log-off. The font changes instantly on desktop and in the browser you can simply refresh the page. This could also be that Firefox package was upgraded today too. Any way, I got the font I want now smile

I'll still play with fontconfig more and post the best config on my wiki later smile Thank you all for the help.

Last edited by TuxLyn (2012-09-08 04:41:10)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#10 2012-09-09 04:55:00

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

Alright guys, here is how I've fixed my font, please see my wiki page for more details and pre-compiled packages for 64bit os here. http://wiki.gotux.net/tutorials/archlin … infinality

Result: http://i.imgur.com/xlqqw.png

I hope this helps some one else, like it did me. Thank you to the great arch linux wiki ;-)

Last edited by TuxLyn (2012-09-09 04:59:18)


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#11 2012-09-09 22:34:27

userlander
Member
Registered: 2008-08-23
Posts: 413

Re: [SOLVED] FontConfig Update and Anti-Aliasing

I had to add a ~/.fonts.conf from way back on a slackware system from ~5 yrs ago to get back to reasonably normal. The exact same symlinks in conf.d didn't work, and none of the new options in conf.avail seemed to do anything. Shame nothing about that was mentioned on the home/news page for fontconfig. : -(

Offline

#12 2012-09-10 05:16:27

TuxLyn
Member
From: United States
Registered: 2011-10-26
Posts: 283

Re: [SOLVED] FontConfig Update and Anti-Aliasing

@userlander, Yeah even through I have made my fonts look resonably usable now, Its still not the same crisp and beautiful font that I had before this stupid fontconfig upgrade sad( I love Arch Linux, but some times with some updates/upgrades it just makes things worse.

@ FORUM USERS:
Is there a way to revert back to old fontconfig package and config or do I have to do complete re-install now ?


::: Using Arch Linux Since October 25, 2011 :::
::: Tutorials: http://distrogeeks.com/ :::

Offline

#13 2012-09-10 07:26:40

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,619
Website

Re: [SOLVED] FontConfig Update and Anti-Aliasing

TuxLyn wrote:

@ FORUM USERS:
Is there a way to revert back to old fontconfig package and config or do I have to do complete re-install now ?

Of course there is, but how will you go on with archlinux if you don't upgrade key packages?
If you look for a convenient method to redo what you have installed recently check out pacsnap. Still you have to manually copy back the config files to their former places.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

Board footer

Powered by FluxBB