simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Jan 10 08:45:26 GMT 2025


TL;DR:
  7f4cccde GTK: fixes to the previous font fallback patch.
  61553650 GTK: switch the default to client-side fonts.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2025-01-10 08:45:26

commit 7f4cccde2ae53c083ababaaea19be4a9c45b7091
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=7f4cccde2ae53c083ababaaea19be4a9c45b7091;hp=b088d77d580b8f7e01482aa184db6cf3b46d74eb
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Jan 10 08:15:11 2025 +0000

    GTK: fixes to the previous font fallback patch.
    
    I'd forgotten that I'd already chosen a default client-side font, for
    NOT_X_WINDOWS builds. I should have made the two defaults match! Now
    both default font names are defined in the header file.

 unix/platform.h | 16 +++++++++++++---
 unix/window.c   |  4 ++--
 2 files changed, 15 insertions(+), 5 deletions(-)

commit 6155365076c47a852d9d4e3e0a437787ac747d28
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=6155365076c47a852d9d4e3e0a437787ac747d28;hp=7f4cccde2ae53c083ababaaea19be4a9c45b7091
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Jan 10 08:23:31 2025 +0000

    GTK: switch the default to client-side fonts.
    
    "server:fixed" was a good default when GTK1 was common and non-X11
    environments were rare. Now it's the other way round - Wayland is very
    common and the GTK1 configuration of PuTTY is legacy - so it's time to
    make the default GTK font a client-side one.
    
    Of course, anyone with an existing saved session (including Default
    Settings) won't be affected by this change; it only helps new users
    without an existing ~/.putty at all. That's why we _also_ need the
    fallbacks introduced by the previous couple of commits. But we can at
    least start making it sensible for new users.
    
    (I considered keeping the #if, and switching it round so that it tests
    GTK_CHECK_VERSION(2,0,0) rather than NOT_X_WINDOWS, i.e. selects the
    client-side default whenever client-side fonts _are_ available,
    instead of only when server-side fonts _aren't_. That way, in GTK1
    builds, the Conf default font would _still_ be "server:fixed". But I
    think this is firstly too marginal to worry about, and secondly, it's
    more futureproof to make the default the same everywhere: if anyone
    still stuck on a GTK1 environment later manages to update it, then
    their saved settings are less likely to have had a legacy thing
    written into them. And the GTK1 build will still run out of the box
    because of the last-ditch fallback mechanism I've just added.)

 unix/platform.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)



More information about the tartarus-commits mailing list