simon-git: putty (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Thu Aug 13 21:11:14 BST 2020


TL;DR:
  06a8d119 Support SGR 9 for strikethrough effect on text.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2020-08-13 21:11:14

commit 06a8d11964d03046e1cfa4eaf0b327b0fc554821
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=06a8d11964d03046e1cfa4eaf0b327b0fc554821;hp=334d87251ea52154a8b45e2f487b77b8f25f8a29
Author: Simon Tatham <anakin at pobox.com>
Date:   Thu Aug 13 21:08:53 2020 +0100

    Support SGR 9 for strikethrough effect on text.
    
    This is mostly easy: it's just like drawing an underline, except that
    you put it at a different height in the character cell. The only
    question is _where_ in the character cell.
    
    Pango, and Windows GetOutlineTextMetrics, will tell you exactly where
    the font wants to have it. Following xterm, I fall back to 3/8 of the
    font's ascent (above the baseline) if either of those is unavailable.

 putty.h          |  1 +
 terminal.c       |  6 ++++++
 unix/gtkfont.c   |  5 +++++
 unix/gtkfont.h   |  2 +-
 unix/gtkwin.c    |  8 ++++++++
 windows/window.c | 43 ++++++++++++++++++++++++++++++-------------
 6 files changed, 51 insertions(+), 14 deletions(-)



More information about the tartarus-commits mailing list