Skip to content

Instantly share code, notes, and snippets.

@alambike
Last active July 18, 2016 16:41
Show Gist options
  • Save alambike/9652227 to your computer and use it in GitHub Desktop.
Save alambike/9652227 to your computer and use it in GitHub Desktop.
<!--
Better fonts in Firefox (=> better github experience)
----------
Before install mscorefonts:
sudo apt-get install ttf-mscorefonts-installer
Finally add this config file to **/etc/fonts/local.conf**
-->
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
<!-- Replace Helvetica with Arial -->
<match target="pattern">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Arial</string>
</edit>
</match>
<!-- Replace Times with Times New Roman -->
<match target="pattern">
<test qual="any" name="family">
<string>Times</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Times New Roman</string>
</edit>
</match>
<!-- Replace Palatino with Georgia -->
<match target="pattern">
<test qual="any" name="family">
<string>Palatino</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Georgia</string>
</edit>
</match>
</fontconfig>
  • Instalar infinality para Ubuntu

http://linuxg.net/improve-the-font-rendering-of-your-ubuntu-debian-or-derivative-system-via-infinality/

$ sudo add-apt-repository ppa:no1wantdthisname/ppa
$ sudo apt-get update
$ sudo apt-get install fontconfig-infinality
  • Para mellorar a fonte de consola/gvim ...
    • Instalar a fonte ttf Monaco
      curl -kL https://raw.github.com/cstrap/monaco-font/master/install-font-ubuntu.sh | bash

    • Configurar o antialiasing (unity, xfce ...) con seguintes parámetros:

      • Hinting Light (ligero)
      • Suavizado de bordes RGB (depende do monitor)
  • Mais detalles https://tuxdiary.com/2014/09/27/font-rendering-ubuntu-infinality/
    • Como cambiar o perfil
sudo /etc/fonts/infinality/infctl.sh setstyle
  • Como aumentar os dpi:
xrandr --dpi 128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment