Ubuntu – Wine font rendering difference

14.04evernotefontswine

I run Evernote under wine on two Linux computers. They show different font appearances:

Font rendering comparison

Left: LMDE 64-bit (already dist-upgrade to Debian testing but keep LMDE adjustments) + MATE;
Right: Ubuntu 14.04 LTS 64-bit + Unity

  • Each wine is from the distro's default repository, with the same version 1.6.2.
  • Both wine configs are default, except replacing the font families under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes with "Droid Sans Fallback" in order to display Chinese.
  • I didn't change Ubuntu appearance or font settings; fonts in other apps look perfect.
  • I have tried to copy the entire $HOME/.wine directory from LMDE and run on Ubuntu, but it didn't improve. That means wine config should not be the problem source?

The fonts look much better on LMDE, and I like to know how to make those on Ubuntu look the same? What did LMDE do/adjust?

Best Answer

In those two samples it looks like the font rendering algorithm is the same, one is just much darker than the other (and the darker one looks, to me, better).

This would be font smoothing "gamma" - gamma controlling how light/dark the partially lit pixels are adjusted.

Both the two following articles recommending setting font smoothing in Wine using regedit (yes, Wine maintains a Windows-style registry and has its own regedit.exe).

Run regedit.exe and adjust the following keys in [HKEY_CURRENT_USER\Control Panel\Desktop] to these values:

"FontSmoothing"="2"
"FontSmoothingType"=dword:00000002
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001

Articles: