Skip to content

r/ArchLinux: Can you post your fonts.conf for me?

I'm new to arch (trying out xmonad) and I am struggling to find a configuration that matches Ubuntu's beautiful font rendering. Halp!

10 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
10 · 100% up
Kind
Text
ID
ca3fj

Author

5
posts
23
comments
0
media
View profile

10 comments

My fonts.conf:

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

<fontconfig>

  <!-- # Generic rules for all fonts
       # Aliasing, hinting, filtering -->
  <match target="font">
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintslight</const>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="lcdfilter" mode="assign">
      <const>lcddefault</const>
    </edit>
  </match>

  <!-- # Disable autohinter for bold fonts
       # after enabling FreeType autohinter -->
  <match target="pattern">
    <test compare="more" name="weight">
      <const>medium</const>
    </test>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
  </match>

</fontconfig>

My Xdefaults relevant section:

Xft.antialias:              true
Xft.dpi:                    96
Xft.rgba:                   rgb
Xft.hinting:                true
Xft.hintstyle:              hintslight

Did you check out the huge wiki article?

8 points

Yes, but I'm having trouble understanding it. Did you have to install any extra packages to go along with that configuration?

2 points

No, the default font packages sufficed. If you want, you can replace them by using the -ubuntu versions of freetype2 and fontconfig and libxft (available in the AUR), but I like the way my fonts look like this. You can always just install them from the AUR, and if you dont like them, remove them again and reinstall the default ones.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.