From 0b4e7be59616a7e548a1a18ece3db19bfac1d925 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Sun, 25 Jan 2026 22:05:53 +0100 Subject: [PATCH] followup to #6563 (#6569) * mess with the font rendering of the home screen until it works * add more fonts * increase font weight * fix outline on the text --- .../src/interface/widgets/general/home_styled_button.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/interface/widgets/general/home_styled_button.cpp b/cockatrice/src/interface/widgets/general/home_styled_button.cpp index e8f2722cd..c7bdd1e5e 100644 --- a/cockatrice/src/interface/widgets/general/home_styled_button.cpp +++ b/cockatrice/src/interface/widgets/general/home_styled_button.cpp @@ -97,7 +97,7 @@ void HomeStyledButton::paintEvent(QPaintEvent *event) QPainterPath path; path.addText(center, font(), text()); - painter.setPen(QPen(Qt::black, 2.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin)); - painter.setBrush(Qt::white); - painter.drawPath(path); + QPen pen(Qt::black, 4.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); + painter.strokePath(path, pen); + painter.fillPath(path, Qt::white); }