|

Improving Fedora Font Rendering with Open Software and Fonts Only

It is continuously discussed that some Fedora users do not like the font rendering in Fedora Linux and there are solutions to improve the font rendering with potentially non-free or non-licensed software/fonts. However, with only the open source fonts and software and little tricks, the font rendering on Fedora can be quite good. In this post, I will introduce my method to improve Fedora’s font rendering with open software and fonts only.

First, take a look at the effect and decide whether you like it. You can proceed if you like this approach of improving the font rendering.

Fonts

The Gnome 3 use Cantarell fonts as the interface fonts. However, I am not a big fan of the Cantarell fonts and prefer the Liberation fonts. Fedora ships Liberation fonts but ships with the Liberation font version 1 (I am using Fedora 20 now). On the other hand, the Liberation fonts version 2 is already released on its website. The version 2 of Liberation fonts, from my experience, is rendered much better than the version 1. Hence, let’s install Liberation version 2 to be used.

First, download the tar ball from the Liberation fonts website: https://fedorahosted.org/liberation-fonts/ .

Second, unpack the tar ball and copy the TTFs to ~/.fonts for user wide usage, or to /usr/share/fonts/truetype/liberation for system-wide availability.

Last, run fc-cache to make the fonts cached.

Font rendering

After installing the Liberation fonts, we can alias the Sans, Sans-serif and etc to it. You can put a copy of the local.conf (mine can be downloaded from here) to specify the font aliasing to /etc/fonts/local.conf. Note that my local.conf contains configuration for Chinese fonts fallback. You may adapt it for your own preference.

Lastly, we can choose the fonts of Gnome 3 and tune the font rendering. To do this, you need gnome-tweak-tool which can be installed by # yum install gnome-tweak-tool.

For the interface fonts, I use Sans. For the hinting and Antialiasing, I use “Slight” and “Rgba”. The “Slight” hinting seems the best to my eye which hints the fonts and keep the original shape of the fonts.

Similar Posts

  • How to change number of replications of certain files in HDFS?

    The HDFS has a configuration in hdfs-site.xml to set the global replication number of blocks with the “dfs.replication” property. However, there are some “hot” files that are access by many nodes. How to increase the number of blocks for these certain files in HDFS? You can the replication number of certain file to 10: hdfs…

  • Simple Introduction to paravirt_ops for Xen

    The is a simple introduction to paravirt_ops in Linux kernel for Xen, VMware, etc. We make this introduction from the view of code. We use the function raw_local_irq_disable() and raw_local_irq_enable() functions in Linux kernel to introduce paravirt_ops for Xen and Xenified kernel. Please download the introduction to paravirt_ops pdf file: introduction-to-pv-ops-v3.pdf Read more: Introduction to…

  • How to import OCaml libraries

    How to import 3rd party libraries (e.g. not standard libraries) in OCaml? An answer by Gabriel Scherer on how to import Batteries is just great and answers this question with much information. Although it is for Batteries, the method is general. The OCaml compiler (or toplevel, etc.) will find with no additional information only the…

  • SetProxy: 一个设置IE代理的命令行小工具

    IE的代理设置用起来并不方便,我自己而言就要经常更改代理服务器,相信很多人有跟我相同的需要。使用C++编写了一个小程序SetProxy调用Win32 API来设置代理服务器IP,用起来方便多了。 编译后为一个可运行console程序,将它放在\windows\system32目录下,使用时只要运行 SetProxy IP:port 就可以把IP设置好,如果要关闭代理,只需运行 SetProxy “” 命令行中运行,界面较土,但用着方便。可以考虑设置几个快捷方式在桌面或者工具栏,点击即设置代理,其它方式发挥想象。 程序下载地址. 源代码也放在这里,希望有需要的人可以用得上 ;) 源代码下载地址. 这是一份有些年头的代码, 如果你在较新的编译器下编译这个项目, 请先做[[setproxy-一个设置ie代理的小工具#comment-995|这里所述的小修改]]. — Eric on Apr. 9, 2014. Read more: Making Emacs Start Up Faster Profiling Vim to Find Out Which Plugin Makes Vim Slow Handling Sparse Files on Linux Spring Shell Technology For Java development Vim Tutorial for Beginners: vimtutor…

One Comment

  1. Thanks for the tips! Font rendering indeed looks better now on Fedora 21, I guess primarily by installing the new Liberations fonts and the local.conf file.

Leave a Reply

Your email address will not be published. Required fields are marked *