simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Wed Dec 29 14:11:25 GMT 2010


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9063
Date:           2010-12-29 14:11:25 +0000 (Wed, 29 Dec 2010)

Log message (19 lines):
Support for using variable-pitch fonts for the terminal on Windows.

Done in much the same way as it is in the GTK front end: the character
cell width is determined using the font's digits (which seems to give
generally not-too-offensive spacing in most cases, at the expense of
Ms and Ws typically overhanging a bit into adjacent cells) and each
character is centred in its cell. Overhangs never leave permanent
droppings on the window, because the existing work done in r5003
handles them just fine even in this stressful scenario.

There's a hacky new checkbox in the Appearance panel to make
variable-pitch fonts appear in the font selector (they still don't by
default, because I still think it's _usually_ not What You Want); the
checkbox state is not actually stored as part of a saved session, but
it should be automatically ticked when reloading a session that's got
a variable pitch font selected.

(I'm half-expecting a potential flurry of requests for this feature in
the wake of http://xkcd.com/840/ , so I thought I'd pre-empt them :-)

Modified files:
U   putty/doc/config.but
U   putty/windows/wincfg.c
U   putty/windows/winctrls.c
U   putty/windows/windlg.c
U   putty/windows/window.c
U   putty/windows/winstuff.h

Links:
http://svn.tartarus.org/sgt/?rev=9063&view=rev
http://svn.tartarus.org/sgt/putty/doc/config.but?rev=9063&r1=9062&r2=9063
http://svn.tartarus.org/sgt/putty/windows/wincfg.c?rev=9063&r1=9062&r2=9063
http://svn.tartarus.org/sgt/putty/windows/winctrls.c?rev=9063&r1=9062&r2=9063
http://svn.tartarus.org/sgt/putty/windows/windlg.c?rev=9063&r1=9062&r2=9063
http://svn.tartarus.org/sgt/putty/windows/window.c?rev=9063&r1=9062&r2=9063
http://svn.tartarus.org/sgt/putty/windows/winstuff.h?rev=9063&r1=9062&r2=9063



More information about the tartarus-commits mailing list