aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-05 17:41:43 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2023-04-05 17:52:25 +0300
commit39490d6d8f7a0581f2502529c07fa1c2d67e3237 (patch)
treebea0d37adabdece81d0d8636f9cf132b3f79c5b0
parent9f659ec927583a11f6fdc8a833d03876ffaab370 (diff)
downloadsciteco-39490d6d8f7a0581f2502529c07fa1c2d67e3237.tar.gz
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?)
-rwxr-xr-xdoc/grosciteco.tes4
-rw-r--r--src/view.c2
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);
/*