summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index ec33f3f0d..39f4d75b3 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -25,6 +25,8 @@
#include "configuration.h"
#include "client.h"
+#include "gui/gui.h"
+#include "gui/sdlfont.h"
#include "gui/setup.h"
#include "gui/viewport.h"
@@ -86,6 +88,7 @@ NpcDialog::NpcDialog(int npcId) :
mTextBox->setOpaque(false);
mTextBox->setMaxRow(config.getIntValue("ChatLogLength"));
mTextBox->setLinkHandler(mItemLinkHandler);
+ mTextBox->setFont(gui->getNpcFont());
mScrollArea = new ScrollArea(mTextBox);
mScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
@@ -97,6 +100,7 @@ NpcDialog::NpcDialog(int npcId) :
mItemList->setActionEventId("ok");
mItemList->addActionListener(this);
mItemList->setDistributeMousePressed(false);
+ mItemList->setFont(gui->getNpcFont());
setContentSize(260, 175);