#include "CmFontManager.h" #include "CmFont.h" namespace CamelotEngine { FontPtr FontManager::create(vector::type& fontData) const { FontPtr newFont(CM_NEW(Font, PoolAlloc) Font(), &CoreObject::_deleteDelayed); newFont->setThisPtr(newFont); newFont->initialize(fontData); return newFont; } FontPtr FontManager::createEmpty() const { FontPtr newFont(CM_NEW(Font, PoolAlloc) Font(), &CoreObject::_deleteDelayed); newFont->setThisPtr(newFont); return newFont; } }