diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-26 19:36:33 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-26 19:36:33 +0300 |
commit | c736cc74149a4cdad36389e649c8e0121a197284 (patch) | |
tree | da4bec598749366b52ec20b8dc3e917edc78048e /src/ui/text.c | |
parent | dc1f7aac512d4e0bb2e41f65bdcb6c78cc3a3242 (diff) |
Text: Use "alternative font 1" escape for monospace
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
1076 | attribFont = font_Text_(fontWithStyle_Text(fontId_Text_(d->baseFont), | 1076 | attribFont = font_Text_(fontWithStyle_Text(fontId_Text_(d->baseFont), |
1077 | italic_FontStyle)); | 1077 | italic_FontStyle)); |
1078 | } | 1078 | } |
1079 | else if (ansi & allowFontStyle_AnsiFlag && equal_Rangecc(sequence, "4")) { | 1079 | else if (ansi & allowFontStyle_AnsiFlag && equal_Rangecc(sequence, "11")) { |
1080 | run.attrib.monospace = iTrue; | 1080 | run.attrib.monospace = iTrue; |
1081 | setFgColor_AttributedRun_(&run, tmPreformatted_ColorId); | 1081 | setFgColor_AttributedRun_(&run, tmPreformatted_ColorId); |
1082 | attribFont = font_Text_(fontWithFamily_Text(fontId_Text_(d->baseFont), | 1082 | attribFont = font_Text_(fontWithFamily_Text(fontId_Text_(d->baseFont), |