Use skin font for usernames (fixes #2363) 2367/head
authorBlockMen <nmuelll@web.de>
Fri, 20 Feb 2015 22:10:23 +0000 (23:10 +0100)
committerBlockMen <nmuelll@web.de>
Sat, 21 Feb 2015 12:31:42 +0000 (13:31 +0100)
src/content_cao.cpp

index 4994c8b201ab6d66b102f02b4ce1ed59ca8aaf94..ddfa3b0320daf25525520543baff2cc001191718 100644 (file)
@@ -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));