diff --git a/novelwriter/common.py b/novelwriter/common.py index 83a364bf..f03fa823 100644 --- a/novelwriter/common.py +++ b/novelwriter/common.py @@ -445,6 +445,7 @@ def fontMatcher(font: QFont) -> QFont: default Qt font matching algorithm doesn't handle well changing application fonts at runtime. """ + font.setStyleName(None) # Make sure no font style name is set from config, see #2502 info = QFontInfo(font) if (famRequest := font.family()) != (famActual := info.family()): logger.warning("Font mismatch: Requested '%s', but got '%s'", famRequest, famActual)