Skip to content

Commit

Permalink
gui: setFold doesn't work on macOS (for chinese char) (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven authored Jan 29, 2024
1 parent d16025c commit 2f47c19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions feeluown/app/gui_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def __init__(self, *args, **kwargs):
# including windows, linux and macOS.
font.setPixelSize(13)
QApplication.setFont(font)
elif sys.platform == 'darwin':
font = QApplication.font()
# The default font can not show chinese in bold.
font.setFamilies(['arial', 'Hiragino Sans GB', 'sans-serif'])
QApplication.setFont(font)

QWidget.__init__(self)
App.__init__(self, *args, **kwargs)
Expand Down

0 comments on commit 2f47c19

Please sign in to comment.