summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 19:43:26 +0100
committerIra Rice <irarice@gmail.com>2009-01-24 14:55:38 -0700
commit581206ab0fecbb3afc7afebedac541be51097cf5 (patch)
tree9734beffe9a54f02abe3457bb4c546a0bb878036 /src/text.h
parentc4fd3e6090fb94a77055f4556d906e60e3803d22 (diff)
downloadmana-client-581206ab0fecbb3afc7afebedac541be51097cf5.tar.gz
mana-client-581206ab0fecbb3afc7afebedac541be51097cf5.tar.bz2
mana-client-581206ab0fecbb3afc7afebedac541be51097cf5.tar.xz
mana-client-581206ab0fecbb3afc7afebedac541be51097cf5.zip
Use standard GUI font also for speech and names
The speech bitmap font can't handle unicode, so it has now been replaced by the standard GUI font, drawn with a shadow for chat and with a full outline for names.
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/text.h b/src/text.h
index c2ec4154..03f2dcbc 100644
--- a/src/text.h
+++ b/src/text.h
@@ -37,8 +37,7 @@ class Text
* Constructor creates a text object to display on the screen.
*/
Text(const std::string &text, int x, int y,
- gcn::Graphics::Alignment alignment, gcn::Font *font,
- gcn::Color colour);
+ gcn::Graphics::Alignment alignment, gcn::Color colour);
/**
* Destructor. The text is removed from the screen.
@@ -62,7 +61,6 @@ class Text
int mHeight; /**< The height of the text. */
int mXOffset; /**< The offset of mX from the desired x. */
static int mInstances; /**< Instances of text. */
- gcn::Font *mFont; /**< The font used. */
std::string mText; /**< The text to display. */
gcn::Color mColour; /**< The colour of the text. */
};
@@ -71,8 +69,7 @@ class FlashText : public Text
{
public:
FlashText(const std::string &text, int x, int y,
- gcn::Graphics::Alignment alignment, gcn::Font *font,
- gcn::Color colour);
+ gcn::Graphics::Alignment alignment, gcn::Color colour);
/**
* Remove the text from the screen