FIFE
2008.0
|
#include <fontbase.h>
Public Member Functions | |
void | setRowSpacing (int32_t spacing) |
int32_t | getRowSpacing () const |
void | setGlyphSpacing (int32_t spacing) |
int32_t | getGlyphSpacing () const |
void | setAntiAlias (bool antiAlias) |
bool | isAntiAlias () |
Image * | getAsImage (const std::string &text) |
Image * | getAsImageMultiline (const std::string &text) |
SDL_Color | getColor () const |
![]() | |
virtual void | setColor (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)=0 |
virtual int32_t | getWidth (const std::string &text) const =0 |
virtual int32_t | getHeight () const =0 |
Abstract Font Base Class Uses a pool for rendered strings.
Definition at line 48 of file fontbase.h.
|
virtual |
Gets given text as Image The rsulting image is pooled, so it's not that time critical
Implements FIFE::IFont.
Definition at line 112 of file fontbase.cpp.
References FIFE::TextRenderPool::addRenderedText(), and FIFE::TextRenderPool::getRenderedText().
|
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::IFont.
Definition at line 122 of file fontbase.cpp.
References FIFE::TextRenderPool::addRenderedText(), FIFE::IFont::getHeight(), FIFE::TextRenderPool::getRenderedText(), and getRowSpacing().
|
virtual |
Get the color the text was rendered in
Implements FIFE::IFont.
Definition at line 80 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), and FIFE::TextRenderPool::getRenderedText().
|
virtual |
Gets the spacing between letters in pixels.
Implements FIFE::IFont.
Definition at line 68 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), FIFE::TextRenderPool::getRenderedText(), and FIFE::ImageFontBase::getWidth().
|
virtual |
Gets the spacing between rows in pixels.
Implements FIFE::IFont.
Definition at line 60 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), getAsImageMultiline(), FIFE::TrueTypeFont::getHeight(), and FIFE::TextRenderPool::getRenderedText().
|
virtual |
Checks if anti aliasing is used.
Implements FIFE::IFont.
Definition at line 76 of file fontbase.cpp.
Referenced by FIFE::TextRenderPool::addRenderedText(), and FIFE::TextRenderPool::getRenderedText().
|
virtual |
Sets the use of anti aliasing..
antaAlias | true for use of antia aliasing. |
Implements FIFE::IFont.
Definition at line 72 of file fontbase.cpp.
|
virtual |
Sets the spacing between letters in pixels. Default is 0 pixels. The spacing can be negative.
spacing | the spacing in pixels. |
Implements FIFE::IFont.
Definition at line 64 of file fontbase.cpp.
|
virtual |
Sets the spacing between rows in pixels. Default is 0 pixels. The spacing can be negative.
spacing | the spacing in pixels. |
Implements FIFE::IFont.
Definition at line 56 of file fontbase.cpp.