From 96895cd22c06cfa82c5cc2c03b091bd855e16e3b Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:18:15 -0500 Subject: Everywhere: Fully qualify font names by including their slope Fixes typefaces of the same weight but different slopes being incorrectly returned for each other by FontDatabase. --- Userland/Libraries/LibGUI/TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGUI/TextEditor.cpp') diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index b4961fbdd6..29b16be858 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -609,7 +609,7 @@ void TextEditor::paint_event(PaintEvent& event) } auto font = unspanned_font; if (span.attributes.bold) { - if (auto bold_font = Gfx::FontDatabase::the().get(font->family(), font->presentation_size(), 700)) + if (auto bold_font = Gfx::FontDatabase::the().get(font->family(), font->presentation_size(), 700, 0)) font = bold_font; } draw_text_helper(span_start, span_end, font, span.attributes); -- cgit v1.2.3