Autor Tópico: Melhorar renderização de fontes sem instalar aplicativos, no Ubuntu-Gnome Shell  (Lida 6726 vezes)

Offline SergioJP

  • Usuário Ubuntu
  • *
  • Mensagens: 220
  • Nada é melhor do que aprender e compartilhar.
    • Ver perfil
Primeiro instale a dependência libftgl2 para que o freetype renderize com opengl com esse comando:
sudo apt install libftgl2

Uma pequena configuração é necessária para renderizar as fontes de maneira otimizada(ou melhorada).

Crie um arquivo em /etc/fonts/ com o nome local.conf para isso rode o comando abaixo:

sudo -s gedit /etc/fonts/local.conf

Com o gedit aberto cole o codigo abaixo:

<match target="font">
  <edit name="autohint" mode="assign">
    <bool>true</bool>
  </edit>
  <edit name="hinting" mode="assign">
    <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
    <const>hintslight</const>
  </edit>
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
 </edit>
</match>

Então salve o arquivo e feche o gedit.

Abra o arquivo  ~/.Xresources que está oculto em sua pasta home, caso não tenha crie.
Esse arquivo ~/.Xresources é necessário pois caso contrario você terá um erro.
Exemplo:
"cp: cannot stat ‘~/.Xresources’: No such file or directory".


Abra ou Crie o arquivo ~/.Xresources com o comando:

gedit ~/.Xresources
Então cole o código abaixo:

Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault

Salve as mudanças e feche.


Finalmente rode o comando abaixo no terminal para implementar as configurações:

xrdb -merge ~/.Xresources

Tenha certeza de que o Suavização está Habilitado em Subpixel (Para telas LCD ) , e Hiting esteja Habilitado em Leve nas configurações de Aparências.


Finalmente reincie o PC para aplicar as configurações.
Ubuntu Gnome 17.04 LTS GIGABYTE H61M-S1- CORE i3 - NVidia GT 420 - 12G RAM