Skip to content

Commit

Permalink
Qt: Fix monospace font in osx 10.9
Browse files Browse the repository at this point in the history
The "Monospace" hint was added in Qt 4.8, and it works as intended as opposed
to "TypeWriter" which fails to load a font.
  • Loading branch information
schinzelh committed Jul 20, 2014
1 parent dc43009 commit 41d1653
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ QString dateTimeStr(qint64 nTime)
QFont bitcoinAddressFont()
{
QFont font("Monospace");
#if QT_VERSION >= 0x040800
font.setStyleHint(QFont::Monospace);
#else
font.setStyleHint(QFont::TypeWriter);
#endif
return font;
}

Expand Down

0 comments on commit 41d1653

Please sign in to comment.