18#include <OgreString.h>
105 const Ogre::String& image,
const int width,
const int height
The UI widgets font.
Definition: UiFont.h:64
virtual ~UiFont()
Destructor.
Definition: UiFont.cpp:39
Ogre::String image_name_
The font image file name.
Definition: UiFont.h:176
void SetImage(const Ogre::String &image, const int width, const int height)
Sets an image for the font.
Definition: UiFont.cpp:45
int image_width_
The font image file width.
Definition: UiFont.h:181
std::vector< UiCharData > char_data_
List of character data for the font.
Definition: UiFont.h:196
const Ogre::String & GetImageName() const
Retrieves the font image file name.
Definition: UiFont.cpp:53
const Ogre::String & GetName() const
Retrieves the font name.
Definition: UiFont.cpp:41
Ogre::String name_
The font name.
Definition: UiFont.h:166
int GetHeight() const
Retrieves the character height of the font.
Definition: UiFont.cpp:62
const Ogre::String & GetLanguage() const
Retrieves the font language.
Definition: UiFont.cpp:43
int image_height_
The font image file height.
Definition: UiFont.h:186
void SetHeight(const int height)
Sets the character height for the font.
Definition: UiFont.cpp:60
UiFont(const Ogre::String &name, const Ogre::String &language)
Constructor.
Definition: UiFont.cpp:19
int GetImageHeight() const
Retrieves the font image height.
Definition: UiFont.cpp:58
int GetImageWidth() const
Retrieves the font image width.
Definition: UiFont.cpp:55
UiCharData GetCharData(const int char_code) const
Retrieves character data from a char code.
Definition: UiFont.cpp:66
Ogre::String language_
The font language.
Definition: UiFont.h:171
int height_
The height of the font characters.
Definition: UiFont.h:191
void AddCharData(const UiCharData &data)
Adds data for a character.
Definition: UiFont.cpp:64
Ogre::String String
Definition: TypeDefine.h:37
Character data for UI elements.
Definition: UiFont.h:23
int char_code
The character code.
Definition: UiFont.h:28
int width
The character width.
Definition: UiFont.h:43
int pre
Definition: UiFont.h:53
int y
The character Y position in the font image.
Definition: UiFont.h:38
int x
The character X position in the font image.
Definition: UiFont.h:33
int height
The character height.
Definition: UiFont.h:48
int post
Definition: UiFont.h:58