simon-git: putty (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Apr 21 23:52:37 BST 2025


TL;DR:
  11f4e2d8 GTK: use Cairo to read X font bitmaps from server

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Ben Harris <bjh21 at bjh21.me.uk>
Date:           2025-04-21 23:52:37

commit 11f4e2d8b501e12b1b9e3bfaaa78f247d54ff072
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=11f4e2d8b501e12b1b9e3bfaaa78f247d54ff072;hp=5cf14b4f271023bf0af6b8c6f785afd9e5029900
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Mon Apr 21 21:16:40 2025 +0100

    GTK: use Cairo to read X font bitmaps from server
    
    When using an X server-side font with Cairo rendering, PuTTY takes the
    rather horrible approach of rendering each glyph it uses into a depth-1
    Pixmap and then copying the result into a Cairo surface that it uses
    every time it wants to display that glyph.
    
    Heretofore, the conversion of the Pixmap into a Cairo surface was done
    by downloading it using XGetImage() and then manually re-arringing the
    bits into a suitable form for Cairo.  But Cairo has a way of turning an
    X Drawable (including a Pixmap) into a surface, and then it's just a
    case of copying one surface to another using cairo_paint().  So that's
    what PuTTY does now and the process is a little less unpleasant than it
    was.

 unix/unifont.c | 73 ++++++++++++++--------------------------------------------
 1 file changed, 17 insertions(+), 56 deletions(-)



More information about the tartarus-commits mailing list