mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
53 lines
1.1 KiB
Markdown
53 lines
1.1 KiB
Markdown
---
|
|
title: Improved Font Rendering in Ubuntu
|
|
date: '2008-05-06T00:00:00+00:00'
|
|
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>
|
|
```
|
|
|
|
|
|
|
|
|