1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/unix/utils
Simon Tatham 4341ba6d5c Add platform-independent fontspec_new_default() function.
Constructing a FontSpec in platform-independent code is awkward,
because you can't call fontspec_new() outside the platform subdirs
(since its prototype varies per platform). But sometimes you just need
_some_ valid FontSpec, e.g. to put in a Conf that will be used in some
place where you don't actually care about font settings, such as a
purely CLI program.

Both Unix and Windows _have_ an idiom for this, but they're different,
because their FontSpec constructors have different prototypes. The
existing CLI tools have always had per-platform main source files, so
they just use the locally appropriate method of constructing a boring
don't-care FontSpec.

But if you want a _platform-independent_ main source file, such as you
might find in a test program, then that's rather awkward. Better to
have a platform-independent API for making a default FontSpec.
2023-02-18 14:10:21 +00:00
..
align_label_left.c Break up gtkmisc.c. 2021-04-26 18:00:01 +01:00
arm_arch_queries.c Implement AES-GCM using the @openssh.com protocol IDs. 2022-08-16 20:33:58 +01:00
arm_arch_queries.h Add CPU feature checks on M1 macOS. 2022-08-16 18:39:12 +01:00
block_signal.c Formatting: normalise to put a space after condition keywords. 2022-12-28 15:32:24 +00:00
buildinfo_gtk_version.c Break up gtkmisc.c. 2021-04-26 18:00:01 +01:00
cloexec.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
dputs.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
filename.c Rename 'ret' variables passed from allocation to return. 2022-09-14 16:10:29 +01:00
fontspec.c Add platform-independent fontspec_new_default() function. 2023-02-18 14:10:21 +00:00
get_label_text_dimensions.c Break up gtkmisc.c. 2021-04-26 18:00:01 +01:00
get_username.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
get_x11_display.c Break up gtkmisc.c. 2021-04-26 18:00:01 +01:00
getticks.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
keysym_to_unicode.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
make_dir_and_check_ours.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
make_dir_path.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
make_spr_sw_abort_errno.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
nonblock.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
open_for_write_would_lose_data.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
our_dialog.c Formatting: standardise on "func(\n", not "func\n(". 2022-08-03 20:48:46 +01:00
pgp_fingerprints.c Update source file names in comments and docs. 2022-01-22 15:51:31 +00:00
pollwrap.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00
signal.c Formatting: normalise to put a space after condition keywords. 2022-12-28 15:32:24 +00:00
string_width.c Break up gtkmisc.c. 2021-04-26 18:00:01 +01:00
x11_ignore_error.c New library-style 'utils' subdirectories. 2021-04-18 08:18:27 +01:00