Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use skin font for usernames (fixes #2363)
  • Loading branch information
BlockMen committed Feb 21, 2015
1 parent cf4045f commit aa31e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_cao.cpp
Expand Up @@ -962,7 +962,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
// Add a text node for showing the name
gui::IGUIEnvironment* gui = irr->getGUIEnvironment();
std::wstring wname = narrow_to_wide(m_name);
m_textnode = smgr->addTextSceneNode(gui->getBuiltInFont(),
m_textnode = smgr->addTextSceneNode(gui->getSkin()->getFont(),
wname.c_str(), video::SColor(255,255,255,255), node);
m_textnode->grab();
m_textnode->setPosition(v3f(0, BS*1.1, 0));
Expand Down

0 comments on commit aa31e3c

Please sign in to comment.