Main menu:

Sponsoring

Please consider a small donation:

 

Also appreciated: support me by clicking the ads (costs nothing) :-)

 

Or you can donate bitcoin:

 

Thanks to TekLinks in Birmingham, AL, for providing colocation and bandwidth.

Page Rank

Fame

FOSS Force Best Blog--2013 Award

Recent posts

Recent comments

About this blog

I am Eric Hameleers, and this is where I think out loud.
More about me.

Search

My Favourites

Slackware

Calendar

July 2014
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
28293031  

RSS Alien's Slackware packages

RSS Alien's unofficial KDE Slackware packages

RSS Alien's multilib packages

Meta

Better font rendering in Wine

I have just bought a Sitecom Multifunctional Print Server, the LN-308. Unfortunately, this printer comes with a MS-Windows based control center application, which you need in order to configure the printserver over the local network.

As a Slackware Linux user, this fact could not defeat me, and I tried my luck with Wine. I built a Slackware package for the latest Wine (1.1.34) and indeed, this application installs and works flawlessly in Wine (on Slackware64 with multilib to be precise).

This is when I found out that the default font rendering in Wine is not as good as when the program would run natively in Windows. To fix this, you need to enable sub-pixel font rendering (font smoothing) in Wine.

You need to make some changes to the “Windows registry” which is emulated by Wine. To start the included registry editor, you either double-click it from within the Wine File Explorer (start "winefile” in an X terminal, browse to the "C:\Windows" directory and doubleclick “regedit.exe") or run it directly from the X terminal prompt with “wine c:\windows\regedit.exe".

Make the following changes to the registry to enable sub-pixel font rendering:

Browse to [HKEY_CURRENT_USER\Control Panel\Desktop] and create/update the following “DWord” values (note: the DWord values are hexadecimal, which is the default for entering values in regedit.exe). You may have to create several of these, since by default only the “FontSmoothing” registry setting is present:


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

Then, restart your Wine applications and watch the difference in font rendering. The jagged edges should have disappeared. As an example, here are two screenshots from sections of winefile, before and after the registry hack. Click on the images to see the full version. Thedefault font used in winefile is quite small (6 point) but here it makes the changes in fort rendering even more obvious.

wine_no_smooth_font1

Before font smoothing

wine_smooth_font1

After applying font smoothing

Eric

Comments

Comment from Dan Kegel
Posted: December 17, 2009 at 05:35

The easy way to do this is with winetricks; see http://wiki.winehq.org/winetricks

Comment from Rob
Posted: December 22, 2009 at 14:24

Font rendering after these changes looks much better. I think I too should make those changes. Thanks for the advice.

Comment from Juan
Posted: January 23, 2010 at 00:30

There is another way to do this: http://files.polosatus.ru/winefontssmoothing_en.sh.

Comment from daniel
Posted: June 19, 2010 at 18:11

To enlarge and enable windows fonts of wine follow this tip

http://tips-linux.net/en/content/install-windows-fonts-wine

Comment from danny0085
Posted: June 23, 2010 at 14:34

If any windows emulated software with wine has small letters. This is the solution http://tips-linux.net/en/content/install-windows-fonts-wine

Pingback from Can’t make Playonlinux run…
Posted: July 9, 2011 at 19:00

[...] Originally Posted by disco_slack Funny I was able to install Playonlinux (after isntall Wmpython, thank you for the tip) and later Msoffice 2007. However the fonts were really ugly and i couldn't insert the Office key…Running a MS program in slackware is a little strange and funny..I need to improve font rendering and find a way to insert the serial of MSO 2007. Here's a blog entry by Alien Bob that may help with the font rendering http://alien.slackbook.org/blog/bett…ering-in-wine/ [...]

Comment from M
Posted: May 16, 2014 at 01:50

Moreover, you have to compile freetype (32 bit package if you’re using 64) with subpixel rendering to get it done.

Write a comment