summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-02-04 23:00:34 +0300
committerSam Atkins <atkinssj@gmail.com>2023-02-05 08:06:06 +0000
commit1f4106842d3a828eb47925d98abe227432549a22 (patch)
treea842387be161d5f0c7c8c9bab7d9cc077ba9e815 /Userland/Applications
parent79006c03b4aee75cfc52d8cc47c0f45068ee649e (diff)
downloadserenity-1f4106842d3a828eb47925d98abe227432549a22.zip
LibGfx: Pass font width to `FontDatabase::get()`
Width need to be passed to `FontDatabase::get()` to resolve font name unambiguously.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Terminal/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index 95efadf587..6414a3e23f 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -409,7 +409,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto adjust_font_size = [&](float adjustment) {
auto& font = terminal->font();
auto new_size = max(5, font.presentation_size() + adjustment);
- if (auto new_font = Gfx::FontDatabase::the().get(font.family(), new_size, font.weight(), font.slope())) {
+ if (auto new_font = Gfx::FontDatabase::the().get(font.family(), new_size, font.weight(), font.width(), font.slope())) {
terminal->set_font_and_resize_to_fit(*new_font);
terminal->apply_size_increments_to_window(*window);
window->resize(terminal->size());