Skip to content

Commit

Permalink
GUI: Default to font Consolas on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
equalsraf committed Feb 16, 2017
1 parent ac7c659 commit e31517d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/gui/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
#include "neovimconnector.h"
#include "shellwidget/shellwidget.h"

#if defined(Q_OS_MAC)
# define DEFAULT_FONT "Courier New"
#else
# define DEFAULT_FONT "Monospace"
#endif

namespace NeovimQt {

class Shell: public ShellWidget
Expand Down
7 changes: 5 additions & 2 deletions src/gui/shellwidget/shellwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ ShellWidget* ShellWidget::fromFile(const QString& path)
void ShellWidget::setDefaultFont()
{
#if defined(Q_OS_MAC)
setShellFont("Courier New", 11, -1, false, true);
# define DEFAULT_FONT "Courier New"
#elif defined(Q_OS_WIN)
# define DEFAULT_FONT "Consolas"
#else
setShellFont("Monospace", 11, -1, false, true);
# define DEFAULT_FONT "Monospace"
#endif
setShellFont(DEFAULT_FONT, 11, -1, false, true);
}

bool ShellWidget::setShellFont(const QString& family, int ptSize, int weight, bool italic, bool force)
Expand Down

0 comments on commit e31517d

Please sign in to comment.