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?) --- doc/grosciteco.tes | 4 ++-- src/view.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/grosciteco.tes b/doc/grosciteco.tes index 648242f..cad7081 100755 --- a/doc/grosciteco.tes +++ b/doc/grosciteco.tes @@ -124,11 +124,11 @@ EBN[input] !cmd.xf! :M#sa :M#giU.n Q.n+16U.#nt .(:M#sa).X[font] :M#sc :Q[fonts.\.n]"F F< ' -U[fonts.\.n] - @:EU[styles]{\.#ntESSTYLESETFONTCourier^J} + @:EU[styles]{\.#ntESSTYLESETFONTMonospace^J} Ocmd.xfQ[font] !cmd.xfR! Q.nU[default-style] - @:EU[styles]{16ESSTYLESETFONTCourier^J} + @:EU[styles]{16ESSTYLESETFONTMonospace^J} F< !cmd.xfB! @:EU[styles]{1,\.nESSTYLESETBOLD 1,\.#ntESSTYLESETBOLD^J} 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