From 39490d6d8f7a0581f2502529c07fa1c2d67e3237 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 5 Apr 2023 17:41:43 +0300 Subject: default font is now "Monospace" instead of Courier * Courier has the quirk that letter sequences like "fi" are turned into ligatures which breaks the monospaced nature of the display. * We assume that "Monospace" is also more portable, although it hasn't yet been tested on Windows. * only relevant for the Gtk UI of course * It might be a good idea to set SCI_STYLESETCHECKMONOSPACED as well (FIXME?) --- src/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/view.c') diff --git a/src/view.c b/src/view.c index 02f94a4..d1e55d2 100644 --- a/src/view.c +++ b/src/view.c @@ -93,7 +93,7 @@ teco_view_setup(teco_view_t *ctx) teco_view_ssm(ctx, SCI_STYLESETFORE, STYLE_DEFAULT, 0xFFFFFF); teco_view_ssm(ctx, SCI_STYLESETBACK, STYLE_DEFAULT, 0x000000); - teco_view_ssm(ctx, SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Courier"); + teco_view_ssm(ctx, SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Monospace"); teco_view_ssm(ctx, SCI_STYLECLEARALL, 0, 0); /* -- cgit v1.2.3