The UI widgets font.
More...
#include <UiFont.h>
◆ UiFont()
UiFont::UiFont |
( |
const Ogre::String & |
name, |
|
|
const Ogre::String & |
language |
|
) |
| |
Constructor.
- Parameters
-
[in] | name | The font name. |
[in] | language | The font language. |
◆ ~UiFont()
◆ AddCharData()
void UiFont::AddCharData |
( |
const UiCharData & |
data | ) |
|
Adds data for a character.
- Parameters
-
[in] | data | The character data to add. |
◆ GetCharData()
UiCharData UiFont::GetCharData |
( |
const int |
char_code | ) |
const |
Retrieves character data from a char code.
- Parameters
-
[in] | char_code | The code of the character to retrieve data about. |
- Returns
- Character data associated to the char code. A default {
- See also
- UiCharData} structure wil be returnd if there is no data for the char code.
◆ GetHeight()
int UiFont::GetHeight |
( |
| ) |
const |
Retrieves the character height of the font.
- Returns
- The character height.
◆ GetImageHeight()
int UiFont::GetImageHeight |
( |
| ) |
const |
Retrieves the font image height.
- Returns
- The font image height.
◆ GetImageName()
const Ogre::String & UiFont::GetImageName |
( |
| ) |
const |
Retrieves the font image file name.
- Returns
- The font image file name.
◆ GetImageWidth()
int UiFont::GetImageWidth |
( |
| ) |
const |
Retrieves the font image width.
- Returns
- The font image height.
◆ GetLanguage()
const Ogre::String & UiFont::GetLanguage |
( |
| ) |
const |
Retrieves the font language.
- Returns
- The font language.
◆ GetName()
const Ogre::String & UiFont::GetName |
( |
| ) |
const |
Retrieves the font name.
- Returns
- The font name.
◆ SetHeight()
void UiFont::SetHeight |
( |
const int |
height | ) |
|
Sets the character height for the font.
- Parameters
-
◆ SetImage()
void UiFont::SetImage |
( |
const Ogre::String & |
image, |
|
|
const int |
width, |
|
|
const int |
height |
|
) |
| |
Sets an image for the font.
The image is a character map.
- Parameters
-
[in] | image | Path to the font image, relative to data/fonts. |
[in] | width | Image width. |
[in] | height | Image height. |
◆ char_data_
List of character data for the font.
◆ height_
The height of the font characters.
◆ image_height_
int UiFont::image_height_ |
|
private |
The font image file height.
◆ image_name_
Ogre::String UiFont::image_name_ |
|
private |
The font image file name.
◆ image_width_
The font image file width.
◆ language_
Ogre::String UiFont::language_ |
|
private |
◆ name_
Ogre::String UiFont::name_ |
|
private |
The documentation for this class was generated from the following files: