Skip to content

Commit 19344a0

Browse files
kwvgUdjinM6claude
committed
fix: always use getFontNormal() for Montserrat on macOS
setWeight() doesn't work for this font. Co-authored-by: UdjinM6 <[email protected]> Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 03cf457 commit 19344a0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/qt/guiutil_font.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,7 @@ void setApplicationFont()
313313
auto family = g_font_registry.GetFont();
314314
if (family == MONTSERRAT_FONT_STR) {
315315
#ifdef Q_OS_MACOS
316-
if (g_font_registry.GetWeightNormal() != FontRegistry::TARGET_WEIGHT_NORMAL) {
317-
font = std::make_unique<QFont>(getFontNormal());
318-
} else {
319-
font = std::make_unique<QFont>(family);
320-
font->setWeight(FontRegistry::TARGET_WEIGHT_NORMAL);
321-
}
316+
font = std::make_unique<QFont>(getFontNormal());
322317
#else
323318
font = std::make_unique<QFont>(family);
324319
font->setWeight(g_font_registry.GetWeightNormal());

0 commit comments

Comments
 (0)