You are not logged in.

#1 2009-08-23 15:04:24

beat
Member
Registered: 2009-05-24
Posts: 49

[Solved] cairo-ubuntu fontconfig

Okay I just installed Ubuntu's font libraries (freetype2-ubuntu, fontconfig-ubuntu, cairo-ubuntu, libxft-ubuntu) and this is my .fonts.conf

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

Everything works fine in Firefox, the fonts render pretty much like in Ubuntu. But on other GNOME applications nothings has changed.
A picture is worth a thousand words.

1251039852fonts.png

Any help would be appreciated. smile

Last edited by beat (2009-08-25 15:35:37)

Offline

#2 2009-08-23 17:28:09

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

Re: [Solved] cairo-ubuntu fontconfig

beat wrote:

But on other GNOME applications nothing has changed.

Restart xorg.

Apps need to be closed & restarted, to use the patched libs and to re-query the fontconfig settings.

Offline

#3 2009-08-23 18:12:51

beat
Member
Registered: 2009-05-24
Posts: 49

Re: [Solved] cairo-ubuntu fontconfig

Already did that. In fact I already rebooted.

Offline

#4 2009-08-23 18:36:12

duister
Member
Registered: 2009-08-19
Posts: 6

Re: [Solved] cairo-ubuntu fontconfig

Could you post a list of all the files/symlinks in your /etc/fonts/conf.d/ ?

Offline

#5 2009-08-24 01:16:05

beat
Member
Registered: 2009-05-24
Posts: 49

Re: [Solved] cairo-ubuntu fontconfig

beat@darkstar: ~ $ ls -l /etc/fonts/conf.d/
total 4
lrwxrwxrwx 1 root root  31 2009-08-23 15:35 10-antialias.conf -> ../conf.avail/10-antialias.conf
lrwxrwxrwx 1 root root  36 2009-08-23 15:35 10-hinting-slight.conf -> ../conf.avail/10-hinting-slight.conf
lrwxrwxrwx 1 root root  29 2009-08-23 15:35 10-hinting.conf -> ../conf.avail/10-hinting.conf
lrwxrwxrwx 1 root root  43 2009-08-23 15:35 11-lcd-filter-lcddefault.conf -> ../conf.avail/11-lcd-filter-lcddefault.conf
lrwxrwxrwx 1 root root  39 2009-08-23 15:35 20-fix-globaladvance.conf -> ../conf.avail/20-fix-globaladvance.conf
lrwxrwxrwx 1 root root  39 2009-08-23 15:35 20-unhint-small-vera.conf -> ../conf.avail/20-unhint-small-vera.conf
lrwxrwxrwx 1 root root  45 2009-08-23 15:35 25-ttf-arphic-uming-render.conf -> ../conf.avail/25-ttf-arphic-uming-render.conf
lrwxrwxrwx 1 root root  42 2009-08-23 15:35 29-replace-bitmap-fonts.conf -> ../conf.avail/29-replace-bitmap-fonts.conf
lrwxrwxrwx 1 root root  33 2009-08-23 15:35 30-cjk-aliases.conf -> ../conf.avail/30-cjk-aliases.conf
lrwxrwxrwx 1 root root  28 2009-08-23 15:35 30-defoma.conf -> ../conf.avail/30-defoma.conf
lrwxrwxrwx 1 root root  36 2009-08-23 15:35 30-metric-aliases.conf -> ../conf.avail/30-metric-aliases.conf
lrwxrwxrwx 1 root root  33 2009-08-23 15:35 30-urw-aliases.conf -> ../conf.avail/30-urw-aliases.conf
lrwxrwxrwx 1 root root  46 2009-08-23 15:35 35-ttf-arphic-uming-aliases.conf -> ../conf.avail/35-ttf-arphic-uming-aliases.conf
lrwxrwxrwx 1 root root  30 2009-08-23 15:35 40-nonlatin.conf -> ../conf.avail/40-nonlatin.conf
lrwxrwxrwx 1 root root  38 2009-08-23 15:35 41-ttf-arphic-uming.conf -> ../conf.avail/41-ttf-arphic-uming.conf
lrwxrwxrwx 1 root root  27 2009-08-23 15:35 45-latin.conf -> ../conf.avail/45-latin.conf
lrwxrwxrwx 1 root root  31 2009-08-23 15:35 49-sansserif.conf -> ../conf.avail/49-sansserif.conf
lrwxrwxrwx 1 root root  26 2009-08-23 15:35 50-user.conf -> ../conf.avail/50-user.conf
lrwxrwxrwx 1 root root  27 2009-08-23 15:35 51-local.conf -> ../conf.avail/51-local.conf
lrwxrwxrwx 1 root root  42 2009-08-23 15:35 53-monospace-lcd-filter.conf -> ../conf.avail/53-monospace-lcd-filter.conf
lrwxrwxrwx 1 root root  27 2009-08-23 15:35 60-latin.conf -> ../conf.avail/60-latin.conf
lrwxrwxrwx 1 root root  38 2009-08-23 15:35 64-ttf-arphic-uming.conf -> ../conf.avail/64-ttf-arphic-uming.conf
lrwxrwxrwx 1 root root  35 2009-08-23 15:35 64-ttf-thai-tlwg.conf -> ../conf.avail/64-ttf-thai-tlwg.conf
lrwxrwxrwx 1 root root  35 2009-08-23 15:35 65-fonts-persian.conf -> ../conf.avail/65-fonts-persian.conf
lrwxrwxrwx 1 root root  30 2009-08-23 15:35 65-nonlatin.conf -> ../conf.avail/65-nonlatin.conf
lrwxrwxrwx 1 root root  29 2009-08-23 15:35 69-unifont.conf -> ../conf.avail/69-unifont.conf
lrwxrwxrwx 1 root root  31 2009-08-23 15:35 80-delicious.conf -> ../conf.avail/80-delicious.conf
lrwxrwxrwx 1 root root  31 2009-08-23 15:35 90-synthetic.conf -> ../conf.avail/90-synthetic.conf
lrwxrwxrwx 1 root root  47 2009-08-23 15:35 90-ttf-arphic-uming-embolden.conf -> ../conf.avail/90-ttf-arphic-uming-embolden.conf
lrwxrwxrwx 1 root root  45 2009-08-23 15:35 90-ttf-thai-tlwg-synthetic.conf -> ../conf.avail/90-ttf-thai-tlwg-synthetic.conf
-rw-r--r-- 1 root root 959 2009-08-23 15:34 README

Here it is.

Offline

#6 2009-08-24 02:30:30

moose jaw
Member
From: Milwaukee
Registered: 2007-08-20
Posts: 104

Re: [Solved] cairo-ubuntu fontconfig

Have you tried starting up X without a .fonts.conf?  I found that on my system everything looked better after I just deleted .fonts.conf and started up without it.  I'm using the -ubuntu font packages from AUR, as well.

Offline

#7 2009-08-24 21:20:46

duister
Member
Registered: 2009-08-19
Posts: 6

Re: [Solved] cairo-ubuntu fontconfig

Looks to me like the subpixel smoothing isn't applied. Try symlinking /etc/fonts/conf.avail/10-subpixel-rgb.conf to /etc/fonts/conf.d/

Offline

#8 2009-08-25 04:27:23

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

Re: [Solved] cairo-ubuntu fontconfig

beat wrote:

this is my ~/.fonts.conf

Try mine.

Offline

#9 2009-08-25 05:01:26

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [Solved] cairo-ubuntu fontconfig

Maybe it's just me but I can't even tell a difference between those two screenshots...


neutral

Offline

#10 2009-08-25 05:25:55

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

Re: [Solved] cairo-ubuntu fontconfig

sand_man wrote:

can't even tell a difference

Then your monitor sucks, or it isn't an *LCD* monitor wink

The "File Edit View" on the right is much crisper, i.e. not so blurred.

Offline

#11 2009-08-25 05:35:26

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [Solved] cairo-ubuntu fontconfig

brebs wrote:
sand_man wrote:

can't even tell a difference

Then your monitor sucks, or it isn't an *LCD* monitor wink

The "File Edit View" on the right is much crisper, i.e. not so blurred.

Yes this monitor does suck (not mine, at work, paid for by the taxpayers wink)


neutral

Offline

#12 2009-08-25 15:34:54

beat
Member
Registered: 2009-05-24
Posts: 49

Re: [Solved] cairo-ubuntu fontconfig

brebs wrote:
beat wrote:

this is my ~/.fonts.conf

Try mine.

That worked, thanks a lot! smile

Offline

#13 2009-08-28 15:47:06

markg85
Member
Registered: 2009-06-27
Posts: 149

Re: [Solved] cairo-ubuntu fontconfig

brebs wrote:
beat wrote:

this is my ~/.fonts.conf

Try mine.

I hope you don't mind but i added that to the wiki: http://wiki.archlinux.org/index.php/Xor … _very_good

Offline

#14 2009-08-28 16:08:57

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

Re: [Solved] cairo-ubuntu fontconfig

markg85 wrote:

I hope you don't mind

Fine by me.

What I *do* mind is when people get the filename wrong, for the millionth-zillionth time roll

It's ~/.fonts.conf

Offline

#15 2009-08-28 17:36:53

markg85
Member
Registered: 2009-06-27
Posts: 149

Re: [Solved] cairo-ubuntu fontconfig

brebs wrote:
markg85 wrote:

I hope you don't mind

Fine by me.

What I *do* mind is when people get the filename wrong, for the millionth-zillionth time roll

It's ~/.fonts.conf

Just checked it and it says fonts.conf so that wasn't wrong (or you fixed it on the wiki)
edit: yes, you edited it. sorry for the wrong filename.

Last edited by markg85 (2009-08-28 17:38:26)

Offline

#16 2009-09-25 11:33:05

zen3
Member
From: Greece
Registered: 2009-09-02
Posts: 30

Re: [Solved] cairo-ubuntu fontconfig

brebs wrote:
beat wrote:

this is my ~/.fonts.conf

Try mine.

On what fonts/packages it relies on?


ffc

Offline

#17 2009-09-26 04:09:49

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

Re: [Solved] cairo-ubuntu fontconfig

zen3 wrote:

On what fonts/packages it relies on?

Look at the "Installation order" line in the PKGBUILD for cairo-ubuntu.

Offline

#18 2009-09-26 11:12:51

zen3
Member
From: Greece
Registered: 2009-09-02
Posts: 30

Re: [Solved] cairo-ubuntu fontconfig

So, I install the depencies on my Debian box and then just override my .fonts.conf with yours?


ffc

Offline

#19 2009-10-22 21:26:23

vasyabelkin
Member
Registered: 2009-09-10
Posts: 20

Re: [Solved] cairo-ubuntu fontconfig

brebs, thank you ! The fonts look much better now

Offline

Board footer

Powered by FluxBB