1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-07 20:17:34 +00:00

WindowServer: Use the right font for computing titlebar text rects.

This commit is contained in:
Andreas Kling 2019-03-06 22:34:45 +01:00
parent e56fe71dbc
commit 5773b91a04

View file

@ -406,7 +406,7 @@ void WSWindowManager::paint_window_frame(WSWindow& window)
auto close_button_rect = close_button_rect_for_window(window.rect());
auto titlebar_title_rect = titlebar_inner_rect;
titlebar_title_rect.set_width(font().width(window.title()));
titlebar_title_rect.set_width(Font::default_bold_font().width(window.title()));
Rect inner_border_rect {
window.x() - 1,