summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/TextEditor.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-01-31 20:18:15 -0500
committerAndreas Kling <kling@serenityos.org>2022-02-01 10:06:26 +0100
commit96895cd22c06cfa82c5cc2c03b091bd855e16e3b (patch)
treee299a45c1c0b188e794c1af24c6947c96f552c1e /Userland/Libraries/LibGUI/TextEditor.cpp
parent87a149c9a42696c9df1bcbaf9fd4477db5df17d5 (diff)
downloadserenity-96895cd22c06cfa82c5cc2c03b091bd855e16e3b.zip
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.
Diffstat (limited to 'Userland/Libraries/LibGUI/TextEditor.cpp')
-rw-r--r--Userland/Libraries/LibGUI/TextEditor.cpp2
1 files changed, 1 insertions, 1 deletions
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);