From c736cc74149a4cdad36389e649c8e0121a197284 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 26 Oct 2021 19:36:33 +0300 Subject: Text: Use "alternative font 1" escape for monospace --- src/ui/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/text.c b/src/ui/text.c index 2ef54d39..436ec208 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -1076,7 +1076,7 @@ static void prepare_AttributedText_(iAttributedText *d, int overrideBaseDir, iCh attribFont = font_Text_(fontWithStyle_Text(fontId_Text_(d->baseFont), italic_FontStyle)); } - else if (ansi & allowFontStyle_AnsiFlag && equal_Rangecc(sequence, "4")) { + else if (ansi & allowFontStyle_AnsiFlag && equal_Rangecc(sequence, "11")) { run.attrib.monospace = iTrue; setFgColor_AttributedRun_(&run, tmPreformatted_ColorId); attribFont = font_Text_(fontWithFamily_Text(fontId_Text_(d->baseFont), -- cgit v1.2.3