22 #ifndef FIFE_FONTS_FONTBASE_H 23 #define FIFE_FONTS_FONTBASE_H 77 std::string
splitTextToWidth (
const std::string& text, int32_t render_width);
81 virtual SDL_Surface*
renderString(
const std::string& text) = 0;
virtual bool isItalicStyle() const
Checks if italic style is used.
virtual void setUnderlineStyle(bool style)
Sets the use of underline style.
virtual bool isUnderlineStyle() const
Checks if underline style is used.
virtual bool isAntiAlias() const
Checks if anti aliasing is used.
Generic pool for rendered text Caches a number of Images with text, as rendered by a Font...
virtual bool isStrikethroughStyle() const
Checks if strikethrough style is used.
Image * getAsImageMultiline(const std::string &text)
Gets given text as Image.
virtual void setAntiAlias(bool antiAlias)
Sets the use of anti aliasing.
virtual void setStrikethroughStyle(bool style)
Sets the use of strikethrough style.
SDL_Color getColor() const
Get the color the text was rendered in.
Abstract Font Base Class Uses a pool for rendered strings.
virtual void setDynamicColoring(bool coloring)
virtual int32_t getStringIndexAt(const std::string &text, int32_t x) const
void setRowSpacing(int32_t spacing)
Sets the spacing between rows in pixels.
virtual void setItalicStyle(bool style)
Sets the use of italic style.
virtual void setBoldStyle(bool style)
Sets the use of bold style.
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.
Pure abstract Font interface.
std::string splitTextToWidth(const std::string &text, int32_t render_width)
virtual SDL_Surface * renderString(const std::string &text)=0
virtual bool isBoldStyle() const
Checks if bold style is used.
int32_t getGlyphSpacing() const
Gets the spacing between letters in pixels.
int32_t getRowSpacing() const
Gets the spacing between rows in pixels.
virtual bool isDynamicColoring() const