From 5e1dc59411cd7973fb4208ae76d0970bd2ea87d6 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 24 Jan 2009 16:44:27 -0700 Subject: Updated DejaVuSans ttf file, as well as adding the bolded version, which is used in a few spots. Signed-off-by: Ira Rice --- src/text.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/text.cpp') 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)); -- cgit v1.2.3-70-g09d2