From: BlockMen Date: Fri, 20 Feb 2015 22:10:23 +0000 (+0100) Subject: Use skin font for usernames (fixes #2363) X-Git-Tag: 0.4.13~578 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa31e3c7f31fc00abc64551ebc03ed757311280a;p=oweals%2Fminetest.git Use skin font for usernames (fixes #2363) --- diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 4994c8b20..ddfa3b032 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -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));