simon-git: putty (master): putty.git

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Nov 13 14:15:31 GMT 2016


TL;DR:
  2201339 release.pl: switch the.earth.li to HTTPS.
  d9c68d2 gtkfont: refactor parse/unparse of XLFDs.
  1a51771 Unix PuTTY/pterm: Ctrl-< / Ctrl-> to change font size.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer:      putty.git
Date:           2016-11-13 14:15:31

commit 22013390c47ee27a2e2cab67b71b490dea6d475d
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=22013390c47ee27a2e2cab67b71b490dea6d475d;hp=24da181a01ecd851757549afd20978e0bfac445b
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Nov 13 11:56:09 2016 +0000

    release.pl: switch the.earth.li to HTTPS.
    
    That's the URL scheme we advertise on the website, so it's silly to do
    the release-time testing by any other system.

 release.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit d9c68d236bf501bb66d2da0bcebc34279690986b
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=d9c68d236bf501bb66d2da0bcebc34279690986b;hp=22013390c47ee27a2e2cab67b71b490dea6d475d
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Nov 13 12:02:13 2016 +0000

    gtkfont: refactor parse/unparse of XLFDs.
    
    There were already two places in the code (x11font_enum_fonts and
    x11_guess_derived_font_name) where we retrieved an XLFD from the X
    server, sawed it up ad-hoc into its '-'-separated parts and accessed
    them by numeric index.
    
    I'm about to add a third, so before I do, let's turn this into a
    somewhat principled system where we get to do the decode/encode in
    just one place and call all the individual fields by names that are
    actually memorable.
    
    No functional change intended by this commit.

 unix/gtkfont.c | 271 ++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 160 insertions(+), 111 deletions(-)

commit 1a51771720f8263e138e67ba68b97549361ed340
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=1a51771720f8263e138e67ba68b97549361ed340;hp=d9c68d236bf501bb66d2da0bcebc34279690986b
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Nov 13 13:53:42 2016 +0000

    Unix PuTTY/pterm: Ctrl-< / Ctrl-> to change font size.
    
    Each gtkfont back end now provides a routine that will return the name
    of a similar font to the current one but one notch larger or smaller.
    For Pango, this is just a matter of incrementing the font size field
    in a standard way; for X11 server-side fonts, we have to go and do an
    XListFonts query with a wildcard that requests fonts that vary only in
    the size fields from the current one, and then iterate over the result
    looking for the best one.
    
    (I expect this will be more useful to Pango scalable-font users than
    to X11 fonts, but it seemed a shame not to give the X11 side my best
    shot while I was at it.)
    
    Choice of hotkey: I know I'm being inconsistent with gnome-terminal's
    use of Ctrl-plus and Ctrl-minus. I thought that was because I was
    already using Ctrl-minus as a more convenient synonym for
    Ctrl-underscore (which sends the actual control code 0x1F), but now I
    actually try it, apparently I'm not. However, Ctrl-plus and Ctrl-minus
    are quite horrible as a keystroke pair anyway (one has to be typed
    with shift and one without!), and I feel as if the 'less' and
    'greater' signs are more specific anyway, in that they specifically
    indicate _size_ rather than just 'unspecified numerical value'.

 unix/gtkcompat.h |   2 +
 unix/gtkfont.c   | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 unix/gtkfont.h   |   3 ++
 unix/gtkwin.c    |  80 ++++++++++++++++++++++++++++++++
 4 files changed, 219 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list