From 647fd71a2debcd5f48a531b0932856b993a9863d Mon Sep 17 00:00:00 2001 From: Ray Chason Date: Fri, 7 Aug 2026 13:19:50 -0400 Subject: [PATCH] Implement bold and dim attributes --- win/X11/winstat.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/win/X11/winstat.c b/win/X11/winstat.c index 4168bf88a..b5bdc1072 100644 --- a/win/X11/winstat.c +++ b/win/X11/winstat.c @@ -1283,6 +1283,19 @@ tty_render_text(Widget w, int x, int y, const char *text, int color, int attr, fgpixel = pixel; } + /* Implement bold font */ + if (attr & HL_BOLD) { + struct xwindow *wp = find_widget(w); + load_boldfont(wp, w); + font = wp->boldfs; + } + + /* Implement dim text */ + if (attr & HL_DIM) { + fgpixel = (fgpixel & 0xFEFEFE) >> 1; + bgpixel = (bgpixel & 0xFEFEFE) >> 1; + } + /* Get a graphics context */ if (attr & HL_INVERSE) { values.foreground = bgpixel;