Skip to content
Permalink
Browse files

force default fonts on macOS

  • Loading branch information
kevinushey committed Oct 10, 2019
1 parent 2359668 commit 5da64832143ece212dafc91cffa85074b0845290
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/cpp/desktop/DesktopWebPage.cpp
@@ -156,6 +156,11 @@ void WebPage::init()
settings()->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, true);
settings()->setAttribute(QWebEngineSettings::LocalStorageEnabled, true);
settings()->setAttribute(QWebEngineSettings::WebGLEnabled, true);

#ifdef __APPLE__
settings()->setFontFamily(QWebEngineSettings::FixedFont, QStringLiteral("Courier"));
settings()->setFontFamily(QWebEngineSettings::SansSerifFont, QStringLiteral("Helvetica"));
#endif

defaultSaveDir_ = QDir::home();
connect(this, SIGNAL(windowCloseRequested()), SLOT(closeRequested()));

0 comments on commit 5da6483

Please sign in to comment.
You can’t perform that action at this time.