#include <Font.h>
Inheritance diagram for Pentagram::Font:

Public Types | |
| TEXT_LEFT | |
| TEXT_CENTER | |
| TEXT_RIGHT | |
| enum | TextAlign { TEXT_LEFT, TEXT_CENTER, TEXT_RIGHT } |
Public Member Functions | |
| Font () | |
| virtual | ~Font () |
| ENABLE_RUNTIME_CLASSTYPE () | |
| virtual int | getHeight ()=0 |
| virtual int | getBaseline ()=0 |
| virtual int | getBaselineSkip ()=0 |
| virtual void | getStringSize (const std::string &text, int &width, int &height)=0 |
| virtual RenderedText * | renderText (const std::string &text, unsigned int &remaining, int width=0, int height=0, TextAlign align=TEXT_LEFT, bool u8specials=false, std::string::size_type cursor=std::string::npos)=0 |
| virtual void | getTextSize (const std::string &text, int &resultwidth, int &resultheight, unsigned int &remaining, int width=0, int height=0, TextAlign align=TEXT_LEFT, bool u8specials=false) |
| void | setHighRes (bool hr) |
| bool | isHighRes () const |
Protected Attributes | |
| bool | highRes |
Classes | |
| struct | SJISTraits |
| struct | Traits |
Definition at line 37 of file Font.h.
| Pentagram::Font::Font | ( | ) |
| virtual int Pentagram::Font::getBaseline | ( | ) | [pure virtual] |
| virtual int Pentagram::Font::getBaselineSkip | ( | ) | [pure virtual] |
| virtual int Pentagram::Font::getHeight | ( | ) | [pure virtual] |
| virtual void Pentagram::Font::getStringSize | ( | const std::string & | text, | |
| int & | width, | |||
| int & | height | |||
| ) | [pure virtual] |
| void Pentagram::Font::getTextSize | ( | const std::string & | text, | |
| int & | resultwidth, | |||
| int & | resultheight, | |||
| unsigned int & | remaining, | |||
| int | width = 0, |
|||
| int | height = 0, |
|||
| TextAlign | align = TEXT_LEFT, |
|||
| bool | u8specials = false | |||
| ) | [virtual] |
get the dimensions of a rendered string
| text | The text | |
| resultwidth | Returns the resulting width | |
| resultheight | Returns the resulting height | |
| remaining | Returns index of the first character not printed | |
| width | The width of the target rectangle, or 0 for unlimited | |
| height | The height of the target rectangle, or 0 for unlimited | |
| u8specials | If true, interpret the special characters U8 uses | |
| align | Alignment of the text (left, right, center) |
| bool Pentagram::Font::isHighRes | ( | ) | const [inline] |
| virtual RenderedText* Pentagram::Font::renderText | ( | const std::string & | text, | |
| unsigned int & | remaining, | |||
| int | width = 0, |
|||
| int | height = 0, |
|||
| TextAlign | align = TEXT_LEFT, |
|||
| bool | u8specials = false, |
|||
| std::string::size_type | cursor = std::string::npos | |||
| ) | [pure virtual] |
render a string
| text | The text | |
| remaining | Returns index of the first character not printed | |
| width | The width of the target rectangle, or 0 for unlimited | |
| height | The height of the target rectangle, or 0 for unlimited | |
| align | Alignment of the text (left, right, center) | |
| u8specials | If true, interpret the special characters U8 uses |
Referenced by PaperdollGump::PaintStat(), SKFPlayer::run(), and CreditsGump::Run().
| void Pentagram::Font::setHighRes | ( | bool | hr | ) | [inline] |
bool Pentagram::Font::highRes [protected] |
1.4.7