This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Font smoothing adjustment

Tags: None
(comma "," separated)
Eneen
Registered Member
Posts
71
Karma
0
OS

Font smoothing adjustment

Fri Mar 03, 2017 2:44 pm
Hi,

Is there way to make fonts smoothing little sharper? I've set hinting to strong and enabled RGB rendering, but still nato 8pt needs IMO little more blackness. Are there tools to configure it?

Best regs.
kde-cfeck
Registered Member
Posts
93
Karma
0

Re: Font smoothing adjustment  Topic is solved

Fri Mar 03, 2017 7:45 pm
You can try to manually change the font configuration:
https://wiki.archlinux.org/index.php/font_configuration

I do not know of a GUI tool to edit .config/fontconfig/fonts.conf, probably because its complex rules are hard to visualize.
Eneen
Registered Member
Posts
71
Karma
0
OS

Re: Font smoothing adjustment

Sun Mar 05, 2017 4:13 pm
Full documentation is available here:
https://www.freedesktop.org/software/fo ... -user.html

I switched to liberation sans 8 and used default settings except rgb subpixel rendering and turned on full hinting for super sharp small fonts like 8 that I use for UI:

Code: Select all
 <match target="font">
  <test compare="less_eq" name="pixelsize">
   <double>11.0</double>
  </test>
  <edit name="hintstyle">
   <const>hintfull</const>
  </edit>
 </match>

Last edited by Eneen on Tue Mar 07, 2017 9:26 am, edited 1 time in total.
Eneen
Registered Member
Posts
71
Karma
0
OS

Re: Font smoothing adjustment

Tue Mar 07, 2017 9:25 am
I've made further adjustment, maybe will be useful for someone:

Code: Select all
<fontconfig>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 
 <match target="font">
  <edit name="lcdfilter" mode="assign">
   <const>lcdlight</const>
  </edit>
 </match>
 
 <match target="font">
  <test compare="less_eq" name="pixelsize">
   <double>11.0</double>
  </test>
  <edit mode="assign" name="rgba">
   <const>none</const>
  </edit>
 </match>
 
  <match target="font">
  <test compare="less_eq" name="pixelsize">
   <double>11.0</double>
  </test>
  <edit mode="assign" name="hintstyle">
   <const>hintfull</const>
  </edit>
 </match>
 
 <match target="font">
  <test compare="more" name="weight">
   <const>normal</const>
  </test>
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 
</fontconfig>


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell