25#include <guichan/color.hpp>
26#include <guichan/font.hpp>
58 int getWidth(
const std::string &text)
const override;
72 const std::string &text,
73 int x,
int y)
override;
80 const std::string &text,
82 const std::optional<gcn::Color> &outlineColor,
83 const std::optional<gcn::Color> &shadowColor);
A central point of control for graphics.
A wrapper around SDL_ttf for allowing the use of TrueType fonts.
int getWidth(const std::string &text) const override
static std::list< TrueTypeFont * > mFonts
static void updateFontScale(float scale)
TextChunk & getChunk(const std::string &text) const
int getLineHeight() const
Returns the height of a line of text.
const std::string & filename() const
const std::string mFilename
std::list< TextChunk > mCache
int getHeight() const override
void drawString(gcn::Graphics *graphics, const std::string &text, int x, int y) override