From aa31e3c7f31fc00abc64551ebc03ed757311280a Mon Sep 17 00:00:00 2001 From: BlockMen Date: Fri, 20 Feb 2015 23:10:23 +0100 Subject: [PATCH] Use skin font for usernames (fixes #2363) --- src/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.25.1