Even though the current font selection in fonts.conf for the default families
(serif, sans-serif and monospace) should be adequate in most cases, sometimes it
can fail to find a reasonable font. One example that I care about is the greek
language. If the system administrator hasn't installed, or isn't willing to
install because of license issues, the non-free Microsoft fonts, fontconfig will
be unable to locate a suitable font for displaying greek.
A good solution to this would be to add the fonts of the Freefont project to
the lists of fonts for the default family names. In particular, FreeSerif for
serif, FreeSans for sans-serif, and FreeMono for monospace. These fonts are
quite complete and good-looking for many of the simpler scripts; moreover,
they're almost the only free outline fonts available for greek, and probably for
some other languages as well.
I'll be attaching a (trivial) patch that adds the fonts, for your convenience,
should you decide to perform this change. The fonts in question are mostly added
to the end of the relevant lists, as other, more specialised fonts are usually
preferable when available. In addition, being the nit-picker I am, the patch
also eliminates all unnecessary trailing whitespace in fonts.conf, hope you
don't mind. :^)
Created attachment 48 [details] [review]
Adds Freefont entries, removes trailing whitespace.
Thanks for the patch.