22 #ifndef FIFE_FONTS_FONTBASE_H
23 #define FIFE_FONTS_FONTBASE_H
64 std::string
splitTextToWidth (
const std::string& text, int32_t render_width);
68 virtual SDL_Surface*
renderString(
const std::string& text) = 0;
int32_t getGlyphSpacing() const
Gets the spacing between letters in pixels.
Generic pool for rendered text Caches a number of Images with text, as rendered by a Font...
Image * getAsImageMultiline(const std::string &text)
Gets given text as Image.
void setAntiAlias(bool antiAlias)
Sets the use of anti aliasing.
Abstract Font Base Class Uses a pool for rendered strings.
virtual int32_t getStringIndexAt(const std::string &text, int32_t x) const
void setRowSpacing(int32_t spacing)
Sets the spacing between rows in pixels.
int32_t getRowSpacing() const
Gets the spacing between rows in pixels.
Image * getAsImage(const std::string &text)
Gets given text as Image The rsulting image is pooled, so it's not that time critical.
void setGlyphSpacing(int32_t spacing)
Sets the spacing between letters in pixels.
bool isAntiAlias()
Checks if anti aliasing is used.
Pure abstract Font interface.
std::string splitTextToWidth(const std::string &text, int32_t render_width)
virtual SDL_Surface * renderString(const std::string &text)=0
SDL_Color getColor() const
Get the color the text was rendered in.