From 3bc06ead97987a3c6d8144356fbffc9e83e84f97 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 6 Feb 2026 13:55:50 +0100 Subject: make URLs display bold and underlined --- x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x.c') diff --git a/x.c b/x.c index bda2d81..83bed14 100644 --- a/x.c +++ b/x.c @@ -1288,13 +1288,13 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x font = &dc.font; frcflags = FRC_NORMAL; runewidth = win.cw * ((mode & ATTR_WIDE) ? 2.0f : 1.0f); - if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD)) { + if ((mode & ATTR_ITALIC) && (mode & ATTR_BOLD || mode & ATTR_URL)) { font = &dc.ibfont; frcflags = FRC_ITALICBOLD; } else if (mode & ATTR_ITALIC) { font = &dc.ifont; frcflags = FRC_ITALIC; - } else if (mode & ATTR_BOLD) { + } else if (mode & ATTR_BOLD || mode & ATTR_URL) { font = &dc.bfont; frcflags = FRC_BOLD; } -- cgit v1.2.3