Use bold font for billboard text
This commit is contained in:
@@ -66,7 +66,7 @@ scene::IMesh* STKTextBillboard::getTextMesh(core::stringw text, FontWithFace* fo
|
||||
font->render(text, core::rect<s32>(0, 0, size.Width, size.Height), video::SColor(255,255,255,255),
|
||||
false, false, NULL, NULL, this);
|
||||
|
||||
const float scale = 0.03f;
|
||||
const float scale = 0.02f;
|
||||
|
||||
//scene::SMesh* mesh = new scene::SMesh();
|
||||
std::map<video::ITexture*, scene::SMeshBuffer*> buffers;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "challenges/unlock_manager.hpp"
|
||||
#include "config/player_manager.hpp"
|
||||
#include "config/user_config.hpp"
|
||||
#include "font/regular_face.hpp"
|
||||
#include "font/bold_face.hpp"
|
||||
#include "graphics/camera.hpp"
|
||||
#include "graphics/explosion.hpp"
|
||||
#include "graphics/irr_driver.hpp"
|
||||
@@ -2803,12 +2803,12 @@ btQuaternion Kart::getVisualRotation() const
|
||||
*/
|
||||
void Kart::setOnScreenText(const wchar_t *text)
|
||||
{
|
||||
RegularFace* regular_face = font_manager->getFont<RegularFace>();
|
||||
core::dimension2d<u32> textsize = regular_face->getDimension(text);
|
||||
BoldFace* bold_face = font_manager->getFont<BoldFace>();
|
||||
core::dimension2d<u32> textsize = bold_face->getDimension(text);
|
||||
|
||||
if (CVS->isGLSL())
|
||||
{
|
||||
new STKTextBillboard(text, regular_face,
|
||||
new STKTextBillboard(text, bold_face,
|
||||
GUIEngine::getSkin()->getColor("font::bottom"),
|
||||
GUIEngine::getSkin()->getColor("font::top"),
|
||||
getNode(), irr_driver->getSceneManager(), -1,
|
||||
|
||||
Reference in New Issue
Block a user