Fix bad font rendering in Deepin 15
Tofloor
poster avatar
mfischer
deepin
2016-01-08 16:12
Author
Edited by mfischer at 2016-1-13 19:14

Hello everyone!

Some of you already complained about bad font rendering (especially bad font hinting) in an unmodified Deepin 15 install. If you compare the font rendering of Deepin 15 to the font rendering of Ubuntu 14.04 you will notice a huge difference. The reason for Ubuntu doing a much better job is that they have heavily patched some programs like freetype2 and cairo. In this thread I want to show you the steps to improve the font rendering in Deepin 15.

There exists a project called Infinality that is (or was?) working on tweaking the settings of fontconfig.

1. Open a terminal window like Deepin Terminal.

2. Install the Microsoft fonts (Arial and co.):
  1. sudo apt-get install ttf-mscorefonts-installer
Copy the Code

3. Create a new directory in your home directory to put in the files youwill need in the next steps:
  1. mkdir -p ~/infinality
  2. cd ~/infinality
Copy the Code

4. Install the necessary packages for the next steps:
  1. sudo apt-get install build-essential devscripts docbook-to-man libx11-dev x11proto-core-dev libz-dev quilt git
Copy the Code
There may be more depending on what you have already installed. You will find that out in step 6.

5. Download the package templatesfor fontconfig-infinality:
  1. git clone https://github.com/chenxiaolong/Debian-Packages.git
  2. cd Debian-Packages/
Copy the Code

6. Switch to the directories offreetype-infinality and fontconfig-infinality and check if alldependencies are met:
  1. cd freetype-infinality/
  2. dpkg-checkbuilddeps
  3. cd ../fontconfig-infinality/
  4. dpkg-checkbuilddeps
Copy the Code
If dpkg-checkbuilddeps is complaining about missing packages you have to install them with „sudo apt-get install “.

7. Build the packages:
  1. cd ../freetype-infinality/
  2. ./build.sh
  3. cd ../fontconfig-infinality/
  4. ./build.sh
Copy the Code

8. Install the packages:
  1. cd ..
  2. sudo dpkg -i freetype-infinality/*.deb fontconfig-infinality/*.deb
Copy the Code

9. You need to choose a style. I chose the default one:
  1. sudo ./etc/fonts/infinality/infctl.sh setstyle infinality
Copy the Code

10. Reboot to see the changes.


If someone has problems with building the two packages you can download the attached file, unpack it and install the deb-files that are inside.


Please reply and tell me if you like the different font rendering!
Reply Favorite View the author
All Replies
masther
deepin
2016-01-08 18:02
#1
Oye mucha gracias , enserio las fuentes se ven geniales.... Es lo que andaba buscando... XDXD
Reply View the author
hanshakiki
deepin
2016-02-12 07:28
#2
thanks broh...
Reply View the author
jesterjke
deepin
2016-02-12 08:16
#3
Here is the easier way that works for me:

1.
  1. sudo gedit /etc/fonts/local.conf
Copy the Code

2. Past this





  1. rgb




  2. true




  3. hintslight




  4. lcddefault




  5. false


  6. ~/.fonts
Copy the Code

3. Save and reboot
Reply View the author
raeesiqbal
deepin
2016-02-12 11:58
#4
https://bbs.deepin.org/post/30558
Here is the easier way that works for me:

1.

Thanks so much. Worked on Deepin 15.1
Reply View the author
adderbox76
deepin
2016-02-12 22:57
#5
https://bbs.deepin.org/post/30558
Here is the easier way that works for me:

1.

Worked great for me.  Thanks so much!

Last time I tried infinality I was running elementary Luna a couple of years back.  It messed up my system so badly (probably user error) that I swore I'd never use it again.  this method worked awesome.  So again, thanks.

I did change "hintslight" to "hintnone" however.  Completely subjective, but I prefer it.
Reply View the author
zant
deepin
2016-02-14 03:41
#6
https://bbs.deepin.org/post/30558
Here is the easier way that works for me:

1.

Works great for me!
Reply View the author
doniking
deepin
2016-04-08 23:43
#7
When i run
sudo apt-get install build-essential devscripts docbook-to-man libx11-dev x11proto-core-dev libz-dev quilt git

I got too many not found and hash sum mismatch
Reply View the author
dance707
deepin
2016-04-09 00:20
#8
https://bbs.deepin.org/post/30558
When i run
sudo apt-get install build-essential devscripts docbook-to-man libx11-dev x11proto-core- ...

Personally I like jesterjke's method better.
Reply View the author
thatcriticguy
deepin
2016-05-11 16:42
#9
https://bbs.deepin.org/post/30558
Here is the easier way that works for me:

1.

This is a MUCH easier way to resolve the font issues. Thanks!
Reply View the author
dan
deepin
2016-05-29 10:19
#10
Edited by dan at 2016-5-29 02:20

I know this is late, but I just saw this thread. Here's what worked for me.

1. Create a new text document in your home folder.

2. Copy and paste the following code into it...




  1.    
  2.         
  3.             true
  4.         
  5.         
  6.             true
  7.         
  8.         
  9.             hintslight
  10.         
  11.         
  12.             rgb
  13.         
  14.         
  15.             true
  16.         
  17.         
  18.             lcddefault
  19.         
  20.    


  21.    
  22.         serif
  23.         
  24.             Droid Serif
  25.         
  26.    
  27.    
  28.         sans-serif
  29.         
  30.             Droid Sans
  31.         
  32.    
  33.    
  34.         sans
  35.         
  36.             Droid Sans
  37.         
  38.    
  39.    
  40.         monospace
  41.         
  42.             Droid Sans Mono
  43.         
  44.    
  45.    
  46.         mono
  47.         
  48.             Droid Sans Mono
  49.         
  50.    

Copy the Code


3. Name it .fonts.conf

4. Log out and back in...fonts look much better!
Reply View the author
ianzamora
deepin
2016-10-20 18:01
#11
https://bbs.deepin.org/post/30558
Here is the easier way that works for me:

1.

thx dude, its better
Reply View the author
ambiya
deepin
2016-10-23 13:15
#12
Thank you so much. This really what I am looking for. btw why roboto mono not working after installing this?
Reply View the author
horvan
deepin
2016-10-24 03:37
#13
This is just awesome
Reply View the author