LogoopenSUSE Build Service > Projects
Sign Up | Log In

Ubuntu Style Font Rendering

This repo provides Ubuntu style font rendering for OpenSUSE by implementing Ubuntu's versions of fontconfig and freetype2 for enhanced rendering with subpixel hinting.  This repo is currently based on Ubuntu's 16.10 Yakkety Yak release and is updated periodically with Ubuntu's latest versions.

Install as follows:

1) Add one of the following repository links using YaST or zypper according to your OS version:

http://download.opensuse.org/repositories/home:/gldickens3/openSUSE_13.1/
http://download.opensuse.org/repositories/home:/gldickens3/openSUSE_13.2/
http://download.opensuse.org/repositories/home:/gldickens3/openSUSE_42.1/
http://download.opensuse.org/repositories/home:/gldickens3/openSUSE_Leap_42.2/
http://download.opensuse.org/repositories/home:/gldickens3/openSUSE_Tumbleweed/

2) Switch packages to this repo with either YaST or the command line as follows:

Using YaST:

     Software Management > Repositories > This Repo > Switch system packages > Accept

Using the command line: 

     sudo zypper dup --from <This Repo>

The packages from this repo that should be used are: fontconfig, fontconfig-32bit, libfreetype6 and libfreetype6-32bit.

3) Logout/in.

4) Verify that the following content is included in ~/.config/fontconfig/fonts.conf and/or
/etc/fonts/local.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintmedium</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
  </edit>
 </match>
</fontconfig>

Edit the hintstyle in ~/.config/fontconfig/fonts.conf and/or /etc/fonts/local.conf and try each available setting: "hintslight", "hintmedium", "hintfull".  "hintmedium" is the default value and which usually produces the best results.

You should logout/login after changing the font configuration.

Alternatively, you can use your desktop environment's GUI to set the font configuration.  For example, with KDE, go to Font Settings and enable anti-aliasing > Configure > RGB > Slight/Medium/Full.

Comments for home:gldickens3 (0)