rdesktop: Connect to Windows 7 and Vista with ClearType font smoothing enabled
So Windows Vista finally allows to enable ClearType font smoothing for Remote Desktop / Terminal Services sessions. Update: Windows XP SP3 does too!
If you try to connect to a machine running Windows XP SP 3 or later using rdesktop, you won’t get smoothed font typing since at the time of this writing rdesktop does not officially offer an option to control this feature. However, here is a workaround:
rdesktop allows to specify the RDP5 experience via the -x experience switch.
One can either define one of three default experiences (modem, broadband, lan) or one can specify a raw hex value that is send to the server.
NOTE: You can skip over this rather technical part, if you’re not interested in the details. You’ll find the workaround below.
This hex value is actually a combination of defined bit flags. After some tinkering I found that the hex value 0×80 will enable font smoothing for the connection.
The file constants.h of the rdesktop sources contains these flags:
#define RDP5_DISABLE_NOTHING 0x00 #define RDP5_NO_WALLPAPER 0x01 #define RDP5_NO_FULLWINDOWDRAG 0x02 #define RDP5_NO_MENUANIMATIONS 0x04 #define RDP5_NO_THEMING 0x08 #define RDP5_NO_CURSOR_SHADOW 0x20 #define RDP5_NO_CURSORSETTINGS 0x40 /* disables cursor blinking */
So, naturally an additional flag constant can be defined like this:
#define RDP5_ENABLE_FONT_SMOOTHING 0x80
The file rdesktop.c would have to be extended preferably with an additional argument that controls the font smoothing.
If you want to use font smoothing with rdesktop now you have to combine the flags (bitwise OR, addition will do too) and specify the result via the -x switch.
Here is the workaround for the three defaults mentioned above:
rdesktop -x 0x8F mywinserver # equals the modem default + font smoothing
rdesktop -x 0x81 mywinserver # equals the broadband default + font smoothing
rdesktop -x 0x80 mywinserver # equals the LAN default + font smoothing





May 4th, 2008 at 10:17
You can set the new experience options with the IMsRdpClientAdvancedSettings::put_PerformanceFlags, method. The flags for desktop composition and font smoothing are:
TS_PERF_ENABLE_FONT_SMOOTHING 0×00000080
and
TS_PERF_ENABLE_DESKTOP_COMPOSITION 0×00000100
May 19th, 2008 at 12:59
Great Post!
August 21st, 2008 at 20:16
Excellent! Specifying -x 0×80 in my rdesktop command line gives me ClearType fonts when connecting to my Vista system. Thanks!
December 18th, 2008 at 06:45
What can you tell me about using Remote Desktop , connecting a VISTA client to a SERVER 2003 system? I have downloaded a MS hotfix to the server , turned on “Font Smoothing) in the RDC Experience tab, turned OFF “font smooting” in the REC Experience tab with no luck. The basic Windows menu texts are not too bas, but desk in the 3rd party application is horrible.
Turning on font smoothing for the XP clients via the RCD Experience tab works great.
Thank You in Advance.
December 23rd, 2008 at 19:50
What can you tell me about using Remote Desktop , connecting a VISTA client to a SERVER 2003 system?
rdesktop to a windows 2003 host, LAN settings font smoothing is:
rdesktop -x 0×90 !
December 30th, 2008 at 01:44
Tim, I’m not sure if Windows Server 2003 already supports Cleartype font smoothing. I know that Windows XP does support it in RDC sessions since SP3. So perhaps there is a hotfix or SP available to enable this feature in Windows Server 2003, too?
January 25th, 2009 at 15:48
Thank you! This tip made my day!
August 24th, 2009 at 15:14
a dream! thx ! :D
greetings from germany
µatthias =)
February 12th, 2010 at 00:47
You rock dude!!!
This makes life so much more pleasant for me.
A big thank you from my colleagues and I!!
October 30th, 2010 at 13:50
[...] מס' שעות מצאתי משהו מעניין: מישהו פישפש בקוד של rdesktop ומצא כי אם שולחים פרמטר שונה [...]
January 7th, 2011 at 07:55
[...] Verbindungsparametern. Über eine kurze Suche in Google bin ich dann auf diese Hilfreiche Seite (Link) gestossen welche den Parameter ‘x’ für die Verbindungseinstellungen sehr gut [...]
March 29th, 2011 at 04:35
The 0×80 0×90 doesn’t work for me, I am connecting to XP from RHEL. Did anyone get this work for XP?
March 29th, 2011 at 04:46
Support for ClearType in RDP sessions was added with Windows XP Service Pack 3. Did you install it?
Also make sure to use the newest version of rdesktop.
June 1st, 2011 at 16:33
Works great using Ubuntu to RDP into a Windows 7 box. Thanks!
November 13th, 2011 at 13:50
[...] http://katastrophos.net/andre/blog/2008/03/10/rdesktop-connect-to-windows-vista-with-cleartype-font-… [...]
February 1st, 2012 at 07:58
[...] 0×80 More details on how to arrive at this flag – check this blog. Print PDF [...]
July 3rd, 2012 at 16:29
[...] 允许其他人使用“远程桌面连接”连接到您的计算机 rdesktop: Connect to Windows 7 and Vista with ClearType font smoothing enabled └ Tags: rdp, [...]