mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 22:21:18 +02:00
Font LinBiolinum_Re-0.6.4.ttf is default now and some default values are set according to this font.
This commit is contained in:
@@ -2694,8 +2694,6 @@ int glestMain(int argc, char** argv) {
|
|||||||
|
|
||||||
lang.loadStrings(language);
|
lang.loadStrings(language);
|
||||||
if( lang.hasString("FONT_BASE_SIZE")) {
|
if( lang.hasString("FONT_BASE_SIZE")) {
|
||||||
// 256 for English
|
|
||||||
// 30000 for Chinese
|
|
||||||
Font::baseSize = strToInt(lang.get("FONT_BASE_SIZE"));
|
Font::baseSize = strToInt(lang.get("FONT_BASE_SIZE"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,11 +42,11 @@ bool Font::fontIsRightToLeft = false;
|
|||||||
// in 3D render mode
|
// in 3D render mode
|
||||||
float Font::scaleFontValue = 0.80;
|
float Font::scaleFontValue = 0.80;
|
||||||
// This value is used for centering font text vertically (height)
|
// This value is used for centering font text vertically (height)
|
||||||
float Font::scaleFontValueCenterHFactor = 3.0;
|
float Font::scaleFontValueCenterHFactor = 4.0;
|
||||||
//float Font::scaleFontValue = 1.0;
|
//float Font::scaleFontValue = 1.0;
|
||||||
//float Font::scaleFontValueCenterHFactor = 4.0;
|
//float Font::scaleFontValueCenterHFactor = 4.0;
|
||||||
|
|
||||||
int Font::baseSize = 0;
|
int Font::baseSize = 3;
|
||||||
|
|
||||||
#ifdef USE_FTGL
|
#ifdef USE_FTGL
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ string Font::langHeightText = TextFTGL::langHeightText;
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
int Font::faceResolution = 72;
|
int Font::faceResolution = 720;
|
||||||
string Font::langHeightText = "yW";
|
string Font::langHeightText = "yW";
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -381,7 +381,7 @@ const char* TextFTGL::findFont(const char *firstFontToTry) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string data_path = Text::DEFAULT_FONT_PATH;
|
string data_path = Text::DEFAULT_FONT_PATH;
|
||||||
string defaultFont = data_path + "data/core/fonts/LiberationSans-Regular.ttf";
|
string defaultFont = data_path + "data/core/fonts/LinBiolinum_Re-0.6.4.ttf";
|
||||||
tryFont = defaultFont;
|
tryFont = defaultFont;
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
replaceAll(tryFont, "/", "\\");
|
replaceAll(tryFont, "/", "\\");
|
||||||
|
Reference in New Issue
Block a user