Font smoothing in Wine
I've recently switched from Windows to Linux (elementary OS), and installed Notepad++ with Wine.
It works fine, but looks like Windows 95.
I tried setting registry settings to make the fonts look better, and everything from this thread.
I also tried compiling Wine with this patch applied.
Nothing makes a difference to the font rendering.
How can I enable font hinting or anti-aliasing in Wine?
It turned out to be easier than I thought: font substitution.
Here's how to make the fonts look better:
- Navigate to
HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements
in the Wine registry editor (wine regedit
). - Create a new string value called
Segoe UI
, and set its value toDroid Sans
(or any other sans-serif font name). - Naviagte to
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
. - Create a new string called
MS Shell Dlg
and set its value to a sans-serif font (I used Droid Sans again). Create another string calledMS Shell Dlg 2
and do the same. [source] - Close the registry editor and run
wineboot
to restart Wine.
Great! Smooth fonts!
But: the monospace font in Notepad++ is still jagged.
The fix for that is quite easy, too:
- Open the Style Configurator (Settings -> Style Configurator).
- Choose the font and font size that you want, then check 'Enable global font' and 'Enable global font size' to activate the settings. I chose Droid Sans Mono as the font.
I hope that this will help someone else too.