[SOLVED] Better font rendering?
Tofloor
poster avatar
SlazO
deepin
2014-10-20 10:01
Author
Hi!

Just doing some adjustments in Deepin and the last step would be the font rendering. Actually it's sucks. Literally.
So I just wanted to install infinality-bundle package (the best so far), added the needed PPAs and stuff and then wanted to install this package with the following commands:
  1. sudo nano /etc/apt/sources.list
  2. #Infinality Fonts
  3. deb http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main
  4. deb-src http://ppa.launchpad.net/no1wantdthisname/ppa/ubuntu trusty main
  5. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E985B27B
  6. sudo apt-get update
  7. sudo apt-get install fontconfig-infinality
Copy the Code

.....and Deepin Terminal says that it is going to remove EVERY DAMN PROGRAM from my computer. Just...WTF? Debian was perfect, Fedora was perfect but seriously guys...what's going on here?

Anyway, if I can't install this package (which is unnacceptable IMHO) is it possible to tweak the font rendering/hinting in the system?

Cheers,
SlazO

*** SOLUTION ***

1., In terminal:
  1. sudo gedit /etc/fonts/local.conf
Copy the Code

2., Paste this in the file:
  1.   
  2.     true
  3.   
  4.   
  5.     true
  6.   
  7.   
  8.     hintslight
  9.   
  10.   
  11.    lcddefault
Copy the Code

3., Backup the XResources file
  1. cp .Xresources .Xresources.bak
Copy the Code
If you get an error "cp: cannot stat ‘.Xresources’: No such file or directory" then don't care about it and move forward.

4., gedit .Xresources

If there is anything in file delete everything and paste this:
  1. Xft.dpi: 96
  2. Xft.antialias: true
  3. Xft.hinting: true
  4. Xft.rgba: rgb
  5. Xft.autohint: false
  6. Xft.hintstyle: hintslight
  7. Xft.lcdfilter: lcddefault
Copy the Code

Hit save.

5., xrdb -merge ~/.Xresources

And that's it. Before you reboot you should check the current font hinting mode. Maybe you'll need to install gnome-tweak-tool (sudo apt-get install gnome-tweak-tool) Check the current state with the
  1. gsettings get org.gnome.settings-daemon.plugins.xsettings hinting
Copy the Code

command. If it says "slight" you're good. If not, you can change it with the
  1. gsettings set org.gnome.settings-daemon.plugins.xsettings hinting slight
Copy the Code

command. !!! DO NOT USE !!! any other type of hinting like none, full, medium. Slight is perfect.
Reply Favorite View the author
All Replies
m***[email protected]
deepin
2014-10-23 13:16
#1
Do you have an image (screenshot of some text) to compare the result of your suggestion?
Reply View the author
erajah
deepin
2016-07-13 09:12
#2
Hi All,
This simpler fix should do the trick. Just follow this few steps.
1. Go to you Home folder
2. Create a new empty text document and rename it to .fonts.conf
* After renaming the file, it will disappear [no need to panic]. Just type .fonts.conf in your search bar in nautilus. *
3. Copy and paste the code below into the file you just created.




  1.   
  2.    rgb
  3.   


  4.   
  5.    true
  6.   


  7.   
  8.    hintslight
  9.   


  10.   
  11.    true
  12.   

  13.   
  14.    
  15.       lcddefault
  16.    
  17.   
Copy the Code
4. Save and close
5. Log out and log in

Reply View the author
com_bvv
deepin
2016-07-13 21:31
#3
This is trick must be included in Release 15.3!!!
Reply View the author