From 93d3cbd390e65576d0c8740233b0a7569d9bdd89 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 22 Apr 2025 20:50:48 +0300 Subject: Gtk: monospaced sections in womanpages now respect lexer.font and variable-width font is configurable via lexer.woman.font (refs #34) * grosciteco was just hardcoding "Monospace", regardless of what was configured via lexer.font in ~/.teco_ini * The variable-width font used for ordinary "womanpage" body texts was hardcoded to "Serif". It is now configurable via the lexer.woman.font register. * There is a difference, though: lexer.font has no default value and must therefore be checked everywhere. This is so you can set it even before munging lexer.tes. lexer.woman.font however has a default (Serif), so it can only be overridden after munging lexer.tes. Perhaps it would be easier and more consistent to have a default for lexer.font as well. --- fallback.teco_ini | 1 + 1 file changed, 1 insertion(+) (limited to 'fallback.teco_ini') diff --git a/fallback.teco_ini b/fallback.teco_ini index 0211ade..4a20807 100644 --- a/fallback.teco_ini +++ b/fallback.teco_ini @@ -55,6 +55,7 @@ EMQ[$SCITECOPATH]/opener.tes * The size unit is 1pt/100 *! !![lexer.font]Monospace 1300U[lexer.font] +!![lexer.woman.font]Serif !* Enable default function key macros *! EMQ[$SCITECOPATH]/fnkeys.tes -- cgit v1.2.3