|
Arcade Shooter
|
Represents a font or true-type font. More...
#include <Font.h>
Public Member Functions | |
| virtual bool | Load (const std::string &path, ResourceManager *pManager) |
| Load the desired font into memory. More... | |
| virtual int | GetLineHeight () const |
| Gets the line height of the font in pixels. More... | |
| virtual int | GetTextWidth (const char *text) const |
| Gets the width in pixels of the specified string. More... | |
| virtual bool | IsCloneable () const |
| Used to determine if the font is cloneable. More... | |
| virtual ALLEGRO_FONT * | GetAllegroFont () const |
| Get the allegro font representation of the texture. More... | |
Public Member Functions inherited from KatanaEngine::Resource | |
| unsigned short | GetResourceID () const |
| Gets the ID of the resource. More... | |
Static Public Member Functions | |
| static void | SetLoadSize (const int size, const bool restore=false) |
| Specifies the size of the font when loaded. More... | |
| static void | SetCharacterRange (const int rangeCount, int ranges[]) |
| Sets which characters to use when using a bitmap as a font. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from KatanaEngine::Resource | |
| void | Split (const std::string &line, const char delimeter, std::vector< std::string > &elements) |
| Splits a string into a vector of strings. More... | |
| void | ParseComments (std::string &line) |
| Removes c-style, single-line comments from a line of text. More... | |
| void | TrimLine (std::string &line) |
| Removes white-space at the front and end of a line of text. More... | |
| ResourceManager * | GetResourceManager () |
| Gets a pointer to the ResourceManager that was used to load the resource. More... | |
| virtual Resource * | Clone () |
| Clones a resource. More... | |
Represents a font or true-type font.
|
inlinevirtual |
Get the allegro font representation of the texture.
|
inlinevirtual |
Gets the line height of the font in pixels.
|
inlinevirtual |
Gets the width in pixels of the specified string.
| text | The string to measure. |
|
inlinevirtual |
Used to determine if the font is cloneable.
Implements KatanaEngine::Resource.
|
virtual |
Load the desired font into memory.
| path | The path to the desired font. |
| pManager | A pointer to the ResourceManager that will manage the font. |
Implements KatanaEngine::Resource.
|
static |
Sets which characters to use when using a bitmap as a font.
| rangeCount | The length of the ranges array. |
| ranges | The character ranges. |
|
static |
Specifies the size of the font when loaded.
| size | The desired size of the font. |
| restore | To determine if the load size should revert back to previous after the next font is loaded. |
1.8.13