This makes the console text more readable, as its case is quite important
and the original font uses small capital letters for lower case, which are
hard to read.
The font used is Libration Mono with height 32 and some antialiasing.
Bitmap font generated with CBFG. Liberation Mono is under the SIL Open
Font License version 1.1.
Part of #23.
float mapradius = 0;
Text *text = NULL;
float mapradius = 0;
Text *text = NULL;
float fps = 0;
bool editorenabled = 0;
float fps = 0;
bool editorenabled = 0;
extern float mapradius;
extern Text *text;
extern float mapradius;
extern Text *text;
extern float fps;
extern bool editorenabled;
extern float fps;
extern bool editorenabled;
int offset = 0;
if (consoleselected >= 60)
offset = consoleselected - 60;
int offset = 0;
if (consoleselected >= 60)
offset = consoleselected - 60;
- text->glPrint(10, 30, " ]", 0, 1, 1024, 768);
+ textmono->glPrint(10, 30, " ]", 0, 1, 1024, 768);
- text->glPrint(30 + (float)(consoleselected) * 10 - offset * 10, 30, "_", 0, 1, 1024, 768);
+ textmono->glPrint(30 + (float)(consoleselected) * 10 - offset * 10, 30, "_", 0, 1, 1024, 768);
}
for (unsigned i = 0; i < 15; i++) {
}
for (unsigned i = 0; i < 15; i++) {
- text->glPrint(30 - offset * 10, 30 + i * 20, consoletext[i], 0, 1, 1024, 768);
+ textmono->glPrint(30 - offset * 10, 30 + i * 20, consoletext[i], 0, 1, 1024, 768);
void Game::newGame()
{
text = new Text();
void Game::newGame()
{
text = new Text();
skybox = new SkyBox();
}
void Game::deleteGame()
{
skybox = new SkyBox();
}
void Game::deleteGame()
{
- if (skybox)
- delete skybox;
- if (text)
- delete text;
+ delete skybox;
+ delete text;
+ delete textmono;
glDeleteTextures(1, &screentexture);
glDeleteTextures(1, &screentexture2);
glDeleteTextures(1, &screentexture);
glDeleteTextures(1, &screentexture2);
texdetail = 1;
text->LoadFontTexture("Textures/Font.png");
text->BuildFont();
texdetail = 1;
text->LoadFontTexture("Textures/Font.png");
text->BuildFont();
+ textmono->LoadFontTexture("Textures/FontMono.png");
+ textmono->BuildFont();
texdetail = temptexdetail;
FadeLoadingScreen(10);
texdetail = temptexdetail;
FadeLoadingScreen(10);
texdetail = 1;
text->LoadFontTexture("Textures/Font.png");
text->BuildFont();
texdetail = 1;
text->LoadFontTexture("Textures/Font.png");
text->BuildFont();
+ textmono->LoadFontTexture("Textures/FontMono.png");
+ textmono->BuildFont();
texdetail = temptexdetail;
viewdistdetail = 2;
texdetail = temptexdetail;
viewdistdetail = 2;