#include <string>
#include "color.h"
#include "guichan/font.h"
Go to the source code of this file.
◆ FontGreen
#define FontGreen "green" |
◆ FontGrey
◆ FontRed
FIXME: should be moved to lua
◆ FontWhite
#define FontWhite "white" |
◆ FontYellow
#define FontYellow "yellow" |
◆ MaxFontColors
◆ CleanFonts()
Cleanup the font module.
Clean up the font module.
◆ GetDefaultTextColors()
void GetDefaultTextColors |
( |
std::string & |
normalp, |
|
|
std::string & |
reversep |
|
) |
| |
Get the default text colors for normal and reverse text.
Get the default text colors.
- Parameters
-
normalp | Normal text color pointer. |
reversep | Reverse text color pointer. |
◆ GetGameFont()
Small font used in stats.
◆ GetHotKey()
int GetHotKey |
( |
const std::string & |
text | ) |
|
Get the hot key from a string.
Get the hot key from a string
◆ GetLineFont()
std::string GetLineFont |
( |
unsigned int |
line, |
|
|
const std::string & |
s, |
|
|
unsigned int |
maxlen, |
|
|
const CFont * |
font |
|
) |
| |
Return the 'line' line of the string 's'.
Return the 'line' line of the string 's'.
- Parameters
-
line | line number. |
s | multiline string. |
maxlen | max length of the string (0 : unlimited) (in char if font == NULL else in pixels). |
font | if specified use font->Width() instead of strlen. |
- Returns
- computed value.
◆ GetSmallFont()
Font selector for the font functions. FIXME: should be moved to lua
◆ IsGameFontReady()
Normal font used in game.
◆ LoadFonts()
Load and initialize the fonts.
Load all fonts.
◆ SetDefaultTextColors()
void SetDefaultTextColors |
( |
const std::string & |
normal, |
|
|
const std::string & |
reverse |
|
) |
| |
Set the default text colors for normal and reverse text.
Set the default text colors.
- Parameters
-
normal | Normal text color. |
reverse | Reverse text color. |
◆ FontCodePage
true when GameFont is provided
(C) Copyright 1998-2012 by The