You are not logged in.

#1 2013-09-01 16:11:58

and-bnk
Member
Registered: 2013-04-10
Posts: 49

[SOLVED] fonts blurred with fontconfig 2.10.95

Hi everyone!
I am experiencing a weird behaviour with my browser.
After updating fontconfig to the version 2.10.95, fonts appear blured in firefox. And changing fonts in firefox does not solve the problem (actually, it seems like the change does not take effect)

I have downgraded to 2.10.93 and now firefox looks fine.

Can you confirm that the problem is actually fontconfig 2.10.95?

Thanks in advance!

All the best,
and-bnk

Last edited by and-bnk (2013-09-03 19:22:19)

Offline

#2 2013-09-01 18:09:58

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

Hello

I'm running Firefox but don't see blurry fonts after upgrading fontconfig.  I'm using ttf-dejavu fonts, but don't know that it makes any difference in your case.

What fonts are you using?

Maybe some other users will chime in one way or the other


oz

Offline

#3 2013-09-02 00:32:26

Totoxa
Member
Registered: 2013-03-04
Posts: 12

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

I also have noticed some problems after the fontconfig update, in firefox and clementine. installing ttf-ms-fonts helped a little (the fonts now looks fine but I dont like these fonts).

Offline

#4 2013-09-02 00:56:32

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

Which fonts are you using? I chose to use ttf-chromeos-fonts and I believe them to be sharp.

progandy@pamobile /etc/fonts/conf.d % cat 00-chromos-fonts.conf 
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

<!-- select chromeos fonts as default fonts -->
<alias>
  <family>serif</family>
  <prefer>
    <family>Tinos</family>
  </prefer>
</alias>
<alias>
  <family>sans-serif</family>
  <prefer>
    <family>Arimo</family>
  </prefer>
</alias>
<alias>
  <family>monospace</family>
  <prefer>
    <family>Cousine</family>
  </prefer>
</alias>


<!-- override some windows fonts (since pipelight forced me to install it)  -->

 <match target="pattern">
   <test qual="any" name="family"><string>georgia</string></test>
   <edit name="family" mode="assign" binding="same"><string>Tinos</string></edit>
 </match>
 <match target="pattern">
   <test qual="any" name="family"><string>times</string></test>
   <edit name="family" mode="assign" binding="same"><string>Tinos</string></edit>
 </match>
 <match target="pattern">
   <test qual="any" name="family"><string>times new roman</string></test>
   <edit name="family" mode="assign" binding="same"><string>Tinos</string></edit>
 </match>
 <match target="pattern">
   <test qual="any" name="family"><string>arial</string></test>
   <edit name="family" mode="assign" binding="same"><string>Arimo</string></edit>
 </match>
 <match target="pattern">
   <test qual="any" name="family"><string>verdana</string></test>
   <edit name="family" mode="assign" binding="same"><string>Arimo</string></edit>
 </match>
 <match target="pattern">
   <test qual="any" name="family"><string>courier</string></test>
   <edit name="family" mode="assign" binding="same"><string>Cousine</string></edit>
 </match>
 <match target="pattern">
   <test qual="any" name="family"><string>courier new</string></test>
   <edit name="family" mode="assign" binding="same"><string>Cousine</string></edit>
 </match>

</fontconfig>

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2013-09-02 07:07:45

and-bnk
Member
Registered: 2013-04-10
Posts: 49

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

ozar wrote:

I'm running Firefox but don't see blurry fonts after upgrading fontconfig.  I'm using ttf-dejavu fonts, but don't know that it makes any difference in your case.

What fonts are you using?

I am using exactly the same fonts.
Anyway,  I tried also to change fonts in the firefox settings (and in the system settings as well) but the blurry letters were still there.

Just for the record, my DE is gnome. Does this make any difference?

Last edited by and-bnk (2013-09-02 07:10:13)

Offline

#6 2013-09-02 07:16:44

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

Gnome has its own font settings which are read by cairo. Maybe try to adjust that with gnome-tweak-tool.

By the way, here is an overview of the font stack: http://weirdfellow.wordpress.com/2010/07/25/insanity/


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2013-09-02 11:16:15

varistor
Member
Registered: 2013-09-02
Posts: 3

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

I’m experiencing the same behaviour after upgrading to fontconfig 2.10.95.

and-bnk wrote:

Can you confirm that the problem is actually fontconfig 2.10.95?

Yes (together with installed Tex Gyre fonts). For me commit 010c97 is the first commit to show this bug. Manually reverting the changes fixed this issue for me.

Moreover, this bug is only triggered for me when my LaTeX fonts are manually linked into /usr/share/fonts/. This makes it possible that the TeX Gyre fonts are found by the font rendering system in the first place.

Offline

#8 2013-09-02 18:36:48

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

Same here, my fonts have changed (installed in $HOME/.fonts) with Firefox and it's less readable for me, with 2.10.95.


Github -- My terminal font Envypn

Offline

#9 2013-09-02 19:23:42

and-bnk
Member
Registered: 2013-04-10
Posts: 49

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

progandy wrote:

Gnome has its own font settings which are read by cairo. Maybe try to adjust that with gnome-tweak-tool

I have tried (with gnome-tweak-tol one can only change fonts, though - at least, this appears to me).

varistor wrote:

Yes (together with installed Tex Gyre fonts). For me commit 010c97 is the first commit to show this bug. Manually reverting the changes fixed this issue for me.

Sorry, I didn't get it: how did you manage?

varistor wrote:

Moreover, this bug is only triggered for me when my LaTeX fonts are manually linked into /usr/share/fonts/. This makes it possible that the TeX Gyre fonts are found by the font rendering system in the first place

so, you think the problem here is texlive... what do you suggest?

Offline

#10 2013-09-02 20:57:59

varistor
Member
Registered: 2013-09-02
Posts: 3

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

and-bnk wrote:
varistor wrote:

Yes (together with installed Tex Gyre fonts). For me commit 010c97 is the first commit to show this bug. Manually reverting the changes fixed this issue for me.

Sorry, I didn't get it: how did you manage?

Sorry for not being clear. smile

I made an additional config file /etc/fonts/conf.d/99-metric-aliases.conf with the following content:
EDIT: Corrected /etc/conf.d/99-metric-aliases.conf to /etc/fonts/conf.d/99-metric-aliases.conf

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

<!-- Remove TeX Gyre substitutes defined in 30-metric-aliases.conf. -->

<!-- Map generics to specifics -->

	<!-- PostScript -->
	<alias binding="same">
	  <family>Helvetica</family>
	  <accept>
	  <family>Nimbus Sans L</family>
	  </accept>
	</alias>

	<alias binding="same">
	  <family>Times</family>
	  <accept>
	  <family>Nimbus Roman No9 L</family>
	  </accept>
	</alias>

	<!-- Microsoft -->
	<alias binding="same">
	  <family>Arial</family>
	  <accept>
	    <family>Arimo</family>
	    <family>Liberation Sans</family>
	    <family>Albany</family>
	    <family>Albany AMT</family>
	  </accept>
	</alias>

	<alias binding="same">
	  <family>Times New Roman</family>
	  <accept>
	    <family>Tinos</family>
	    <family>Liberation Serif</family>
	    <family>Thorndale</family>
	    <family>Thorndale AMT</family>
	  </accept>
	</alias>


</fontconfig>

It contains the original version of the bits of 30-metric-aliases.conf that were changed between fontconfig 2.10.93 and 2.10.95. Hence, the buggy behaviour is overwritten by the old one.

EDIT: Sorry, I forgot to mention that you should run

fc-cache -f

as root after placing the new config file to read the changes and recreate the fontconfig cache.

and-bnk wrote:
varistor wrote:

Moreover, this bug is only triggered for me when my LaTeX fonts are manually linked into /usr/share/fonts/. This makes it possible that the TeX Gyre fonts are found by the font rendering system in the first place

so, you think the problem here is texlive... what do you suggest?

No, not really. The problem is that some Texlive/TeX Gyre fonts are marked as substitutes for Arial etc. by newer fontconfig versions. And those fonts are badly hinted, resulting in blurred fonts.

Last edited by varistor (2013-09-03 19:44:32)

Offline

#11 2013-09-03 19:20:05

and-bnk
Member
Registered: 2013-04-10
Posts: 49

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

varistor wrote:

I made an additional config file /etc/conf.d/99-metric-aliases.conf with the following content:

it worked! I put that conf file in /etc/fonts/conf.d/, though.

varistor wrote:

Moreover, this bug is only triggered for me when my LaTeX fonts are manually linked into /usr/share/fonts/.

varistor wrote:

The problem is that some Texlive/TeX Gyre fonts are marked as substitutes for Arial etc. by newer fontconfig versions. And those fonts are badly hinted, resulting in blurred fonts.

I can confirm that the bug is exctaly this one.
I updated to 2.10.95 on another laptop where tex fonts are not symlinked into /usr/share/fonts/: fontconfig works like a charm.

Thank you, varistor! Thanks to everybody!

All the best,
and-bnk

Offline

#12 2013-09-03 19:44:59

varistor
Member
Registered: 2013-09-02
Posts: 3

Re: [SOLVED] fonts blurred with fontconfig 2.10.95

and-bnk wrote:

I put that conf file in /etc/fonts/conf.d/, though.

And that’s where it’s intended to go. Another reason for copy/pasting paths and shell commands. smile I corrected the mistake in the post above.

Offline

Board footer

Powered by FluxBB