From 01419ac9b5c8961e240feaa9f5d160a633f801ed Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 23 Apr 2025 02:07:59 +0300 Subject: fixup: fixed monospace sections in womanpages when lexer.font is not customized (refs #34) * In the grosciteco-generated .woman.tec files, the fonts were only set on the monospaced styles if lexer.font was set since it was undefined by default. We'd need a lare IF-ELSE statement to handle that in womanpages since woman.tes changes the default font to a variable-width font. Just leaving the default font, therefore won't work. * We now always initialize lexer.font in lexer.tes. You no longer have to check for its existance. * Consequently, you can no longer set lexer.font *before* munging lexer.tes because it will be overwritten. At least not without additional checks. Such a design is not suggested by fallback.teco_ini, though. * Fixes monospaced sections in the tutorial and other womanpages on Gtk. --- fallback.teco_ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fallback.teco_ini') diff --git a/fallback.teco_ini b/fallback.teco_ini index 4a20807..edd8b7f 100644 --- a/fallback.teco_ini +++ b/fallback.teco_ini @@ -54,7 +54,7 @@ EMQ[$SCITECOPATH]/opener.tes * Tweak the default font name and size. * The size unit is 1pt/100 *! -!![lexer.font]Monospace 1300U[lexer.font] +!![lexer.font]Monospace 1200U[lexer.font] !![lexer.woman.font]Serif !* Enable default function key macros *! -- cgit v1.2.3