SubpixelHinting

From openSUSE Community Wiki

Note that normal subpixel hinting is included with Freetype as of openSUSE 11.4. If you want the Microsoft style hinting, you may proceed with the instructions below.

Contents

Disclaimer

The subpixel hinting implementation in freetype2 might infringe Microsoft's ClearType patents, which is why it is disabled both upstream (by the freetype2 authors) and in the freetype2 RPM packages that ship with openSUSE.

Install subpixel hinting enabled freetype2 packages

For further information see: [http://forums.opensuse.org/get-help-here/applications/425534-subpixel-hinting-11-2-gtk-apps-solution-2.html]

1-click install

You can upgrade the freetype2 packages using 1-click-install, by clicking on the image below:

oci

With zypper

Note: the following commands must be executed using the root account; after opening a shell (konsole, gnome-terminal, xterm, ...), switch to the root user using the command "su -" (and enter the root password when prompted for it)

SUSE_VERSION=$(awk '/^VERSION/{print $3}' /etc/SuSE-release)

URL=http://repos.opensuse-community.org/subpixel/openSUSE_${SUSE_VERSION}/subpixel.repo zypper ar -n subpixel -r "$URL" zypper ref subpixel zypper up -t package -r subpixel

zypper in freetype2-feature-subpixel-hinting

With smart

Note: the following commands must be executed using the root account; after opening a shell (konsole, gnome-terminal, xterm, ...), switch to the root user using the command "su -" (and enter the root password when prompted for it)

SUSE_VERSION=$(awk '/^VERSION/{print $3}' /etc/SuSE-release)

URL=http://repos.opensuse-community.org/subpixel/openSUSE_${SUSE_VERSION}/subpixel.repo smart channel --add "$URL" smart update subpixel

smart install freetype2-feature-subpixel-hinting

KDE 3 Configuration

Note: the following commands must be executed using your regular non-root account

Note: the KDE 3 Control Center application must be installed on your system (packages: kdelibs3 and kdebase3)

If you're using the KDE 3 desktop or any KDE 3 based application, here is how to set up subpixel hinting for KDE:

  • start the KDE font configuration with the following command depending on your KDE version:
    kcmshell fonts
    kcmshell4 fonts
  • enable the checkbox "Use anti-aliasing for fonts"
  • click on the "Configure" button next to the above mentioned checkbox
  • enable the checkbox "Use sub-pixel hinting:"
  • select "Medium" or "Full" from the Hinting style: list (the best settings is both a matter of taste and depending on your monitor, try the different hinting style options to see what suits you best)
  • click the "OK" button
  • click the "OK" button

GNOME Configuration

Note: the following commands must be executed using your regular non-root account

Note: the GNOME Control Center application must be installed on your system (package: control-center2 or gnome-control-center (openSUSE 11.0))

If you're using the GNOME desktop or any GNOME/GTK2-based application (e.g. Firefox), here is how to set up subpixel hinting for GNOME/GTK:

  • start the GNOME font configuration with the following command:
    gnome-font-properties
    or for openSUSE 11.0
    gnome-appearance-properties
  • in the "Font Rendering" section, select "Subpixel smoothing (LCDs)"
  • click on the "Details..." button below the above mentioned option
  • in the "Smoothing" section, select the option "Subpixel (LCDs)"
  • in the "Hinting" section, select the option that suits you best (the best settings is both a matter of taste and depending on your monitor)
  • click the "Close" button
  • click the "Close" button

Firefox Configuration

For even better experience it is recommended that you install the package dejavu from Repositories/Packman and set Firefox to use them by opening up Edit -> Preferences -> Content -> in the Fonts & Colors box -> Advanced and setting them up as follows: