You are not logged in.

#1 2014-03-15 23:34:36

antuirno
Member
Registered: 2014-03-05
Posts: 10

[SOLVED] Font problem

Hi guys,

How can I fix this problem? Font rasterization in Empathy and LuaKit. Chrome is ok! I'm using gnome 3.10.

Empathy: http://imgur.com/AHQao5T

Chromium: http://imgur.com/S91v6fY

Why?

Last edited by antuirno (2014-03-18 01:17:02)

Offline

#2 2014-03-16 09:43:39

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

Re: [SOLVED] Font problem

That's what fonts look like when fontconfig's antialias is set to false wink

Offline

#3 2014-03-17 02:39:28

antuirno
Member
Registered: 2014-03-05
Posts: 10

Re: [SOLVED] Font problem

My /etc/fonts/local.conf

antialias is true!

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">

  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>

  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>

  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>

  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>

  <edit mode="assign" name="lcdfilter">
    <const>lcddefault</const>
  </edit>

 </match>
</fontconfig>

Offline

#4 2014-03-17 03:02:09

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED] Font problem

do you have anything in ~/.config/fontconfig ? I had a similar problem a while back where I couldn't figure out why my fonts looked so ugly even nothing in /etc/fonts seemed to have changed. Turned out I had a fonts.conf under ~/.config/fontconfig with the crappy default settings. I have infinality fonts set up though - I'm not sure if the vanilla fontconfig puts configuration files there.

Offline

#5 2014-03-17 19:35:29

aryklein
Member
From: Cordoba, Argentina
Registered: 2014-02-18
Posts: 5

Re: [SOLVED] Font problem

I used to have problems with my fonts. They looked very ugly. The way I fixed it was simple:

1) create the file ~/.config/fontconfig/fonts.conf with this content:

<?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>

</fontconfig>

It was taken from the wiki https://wiki.archlinux.org/index.php/Fo … g_Examples
For more information about Font Configuration read this: https://wiki.archlinux.org/index.php/Font_Configuration

2) Install this packages:

pacman -S ttf-dejavu ttf-liberation

(ttf-liberation improves the fonts in Chrome a lot)

Regards!

Last edited by aryklein (2014-03-17 19:36:20)

Offline

#6 2014-03-18 01:15:58

antuirno
Member
Registered: 2014-03-05
Posts: 10

Re: [SOLVED] Font problem

Thank you so much guys! But, nothing worked... hmm

So, I just installed ubuntu font family and infinality-bundle and thats works! Font renderization looks great now!

Offline

Board footer

Powered by FluxBB