diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-01-31 20:18:15 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-01 10:06:26 +0100 |
commit | 96895cd22c06cfa82c5cc2c03b091bd855e16e3b (patch) | |
tree | e299a45c1c0b188e794c1af24c6947c96f552c1e /Userland/Libraries/LibGUI/TextEditor.cpp | |
parent | 87a149c9a42696c9df1bcbaf9fd4477db5df17d5 (diff) | |
download | serenity-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.cpp | 2 |
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); |