summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-24 16:44:27 -0700
committerIra Rice <irarice@gmail.com>2009-01-24 16:44:27 -0700
commit5e1dc59411cd7973fb4208ae76d0970bd2ea87d6 (patch)
treeee805bff4d48f2393df43a395469c18c2dfe7591 /src/text.cpp
parent0b848dd3c46ee8391522f330eaf3ad0f75462e09 (diff)
downloadmana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.gz
mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.bz2
mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.xz
mana-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.zip
Updated DejaVuSans ttf file, as well as adding the bolded version, which
is used in a few spots. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text.cpp b/src/text.cpp
index ba581dab..14ee3919 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -38,8 +38,8 @@ Text::Text(const std::string &text, int x, int y,
textManager = new TextManager();
}
++mInstances;
- mHeight = gui->getFont()->getHeight();
- mWidth = gui->getFont()->getWidth(text);
+ mHeight = boldFont->getHeight();
+ mWidth = boldFont->getWidth(text);
switch (alignment)
{
case gcn::Graphics::LEFT:
@@ -74,7 +74,7 @@ Text::~Text()
void Text::draw(Graphics *graphics, int xOff, int yOff)
{
- graphics->setFont(gui->getFont());
+ graphics->setFont(boldFont);
// Text shadow
graphics->setColor(gcn::Color(0, 0, 0));