#include <fontbase.h>


Public Member Functions | |
| void | setRowSpacing (int spacing) |
| int | getRowSpacing () const |
| void | setGlyphSpacing (int spacing) |
| int | getGlyphSpacing () const |
| void | setAntiAlias (bool antiAlias) |
| bool | isAntiAlias () |
| Image * | getAsImage (const std::string &text) |
| Image * | getAsImageMultiline (const std::string &text) |
| SDL_Color | getColor () const |
Abstract Font Base Class Uses a pool for rendered strings.
Definition at line 48 of file fontbase.h.
| Image * FIFE::FontBase::getAsImage | ( | const std::string & | text | ) | [virtual] |
Gets given text as Image The rsulting image is pooled, so it's not that time critical
Implements FIFE::AbstractFont.
Definition at line 108 of file fontbase.cpp.
References FIFE::TextRenderPool::addRenderedText(), and FIFE::TextRenderPool::getRenderedText().
| Image * FIFE::FontBase::getAsImageMultiline | ( | const std::string & | text | ) | [virtual] |
Gets given text as Image. Text is splitted on multiple lines based "\n" marks The rsulting image is pooled, so it's not that time critical
Implements FIFE::AbstractFont.
Definition at line 118 of file fontbase.cpp.
References FIFE::TextRenderPool::addRenderedText(), FIFE::AbstractFont::getHeight(), FIFE::TextRenderPool::getRenderedText(), and getRowSpacing().
| SDL_Color FIFE::FontBase::getColor | ( | ) | const [virtual] |
Get the color the text was rendered in
Implements FIFE::AbstractFont.
Definition at line 76 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), and FIFE::TextRenderPool::getRenderedText().

| int FIFE::FontBase::getGlyphSpacing | ( | ) | const [virtual] |
Gets the spacing between letters in pixels.
Implements FIFE::AbstractFont.
Definition at line 64 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), FIFE::TextRenderPool::getRenderedText(), and FIFE::ImageFontBase::getWidth().

| int FIFE::FontBase::getRowSpacing | ( | ) | const [virtual] |
Gets the spacing between rows in pixels.
Implements FIFE::AbstractFont.
Definition at line 56 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), getAsImageMultiline(), FIFE::TrueTypeFont::getHeight(), and FIFE::TextRenderPool::getRenderedText().

| bool FIFE::FontBase::isAntiAlias | ( | ) | [virtual] |
Checks if anti aliasing is used.
Implements FIFE::AbstractFont.
Definition at line 72 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), and FIFE::TextRenderPool::getRenderedText().

| void FIFE::FontBase::setAntiAlias | ( | bool | antiAlias | ) | [virtual] |
Sets the use of anti aliasing..
| antaAlias | true for use of antia aliasing. |
Implements FIFE::AbstractFont.
Definition at line 68 of file fontbase.cpp.
| void FIFE::FontBase::setGlyphSpacing | ( | int | spacing | ) | [virtual] |
Sets the spacing between letters in pixels. Default is 0 pixels. The spacing can be negative.
| spacing | the spacing in pixels. |
Implements FIFE::AbstractFont.
Definition at line 60 of file fontbase.cpp.
| void FIFE::FontBase::setRowSpacing | ( | int | spacing | ) | [virtual] |
Sets the spacing between rows in pixels. Default is 0 pixels. The spacing can be negative.
| spacing | the spacing in pixels. |
Implements FIFE::AbstractFont.
Definition at line 52 of file fontbase.cpp.
1.7.1