From f37c8f618b33b07e0163638db52c4130b21a5dd2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 4 Aug 2019 08:15:30 +0200 Subject: [PATCH] Terminal: Paint bold text with a bold font. This was really straightforward since all the necessary pieces were already in place. This patch just passes a bold font to draw_glyphs() for buffer cells with the bold attribute set. :^) --- Applications/Terminal/Terminal.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp index 41bb8b980f..ba83a1e7c7 100644 --- a/Applications/Terminal/Terminal.cpp +++ b/Applications/Terminal/Terminal.cpp @@ -1106,7 +1106,11 @@ void Terminal::paint_event(GPaintEvent& event) } if (ch == ' ') continue; - painter.draw_glyph(character_rect.location(), ch, lookup_color(should_reverse_fill_for_cursor_or_selection ? attribute.background_color : attribute.foreground_color)); + painter.draw_glyph( + character_rect.location(), + ch, + attribute.flags & Attribute::Bold ? Font::default_bold_fixed_width_font() : font(), + lookup_color(should_reverse_fill_for_cursor_or_selection ? attribute.background_color : attribute.foreground_color)); } }