Added new font, thanks to Arthur_D
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4501 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
52ce4576e8
commit
f3fa19bfa8
BIN
data/gui/LayneHansom.xml
Normal file
BIN
data/gui/LayneHansom.xml
Normal file
Binary file not shown.
BIN
data/gui/LayneHansom0.png
Normal file
BIN
data/gui/LayneHansom0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
@ -201,12 +201,13 @@ void init(IrrlichtDevice* device_a, IVideoDriver* driver_a, AbstractStateManager
|
||||
// normal text will range from 0.2, in 640x* resolutions (won't scale below that) to
|
||||
// 0.4, in 1024x* resolutions, and linearly up
|
||||
const int screen_width = irr_driver->getFrameSize().Width;
|
||||
const float normal_text_scale = 0.8f + 0.2f*std::max(0, screen_width - 640)/564.0f;
|
||||
const float normal_text_scale = 0.7f + 0.2f*std::max(0, screen_width - 640)/564.0f;
|
||||
const float title_text_scale = 0.2f + 0.2f*std::max(0, screen_width - 640)/564.0f;
|
||||
|
||||
ScalableFont* sfont = new ScalableFont(g_env, (file_manager->getGUIDir() + "/okolaks.xml").c_str());
|
||||
//ScalableFont* sfont = new ScalableFont(g_env, (file_manager->getGUIDir() + "/okolaks.xml").c_str());
|
||||
ScalableFont* sfont = new ScalableFont(g_env, (file_manager->getGUIDir() + "/LayneHansom.xml").c_str());
|
||||
sfont->setScale(normal_text_scale);
|
||||
sfont->setKerningHeight(-10);
|
||||
sfont->setKerningHeight(-5);
|
||||
g_font = sfont;
|
||||
|
||||
ScalableFont* sfont2 = new ScalableFont(g_env, (file_manager->getGUIDir() + "/title_font.xml").c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user