mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
---
|
|
title: Improved Font Rendering in Ubuntu
|
|
date: Tue, 6 May 2008 00:00:00 +0000
|
|
categories:
|
|
- autohint
|
|
- blog
|
|
- firefox
|
|
- fonts
|
|
- linux
|
|
- ubuntu
|
|
layout: post
|
|
---
|
|
|
|
There's quite a few posts of this type around the web, I just thought I'd document what seems to work best for me. The main thing this fixes is font rendering in Firefox, now it looks just as nice as it does in Epiphany!
|
|
|
|
Put the following in ~/.fonts.conf:
|
|
|
|
``` xml
|
|
<?xml version="1.0"?>
|
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
<fontconfig>
|
|
<match target="font">
|
|
<edit mode="assign" name="rgba">
|
|
<const>none</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>hintmedium</const>
|
|
</edit>
|
|
</match>
|
|
<match target="font">
|
|
<edit mode="assign" name="antialias">
|
|
<bool>true</bool>
|
|
</edit>
|
|
</match>
|
|
<match target="font">
|
|
<edit mode="assign" name="autohint">
|
|
<bool>true</bool>
|
|
</edit>
|
|
</match>
|
|
</fontconfig>
|
|
```
|
|
|
|
|
|
|