| 123456789101112131415161718192021222324 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "Text/BsFontManager.h"
- #include "Text/BsFont.h"
- namespace bs
- {
- SPtr<Font> FontManager::create(const Vector<SPtr<FontBitmap>>& fontData) const
- {
- SPtr<Font> newFont = bs_core_ptr<Font>(new (bs_alloc<Font>()) Font());
- newFont->_setThisPtr(newFont);
- newFont->initialize(fontData);
- return newFont;
- }
- SPtr<Font> FontManager::_createEmpty() const
- {
- SPtr<Font> newFont = bs_core_ptr<Font>(new (bs_alloc<Font>()) Font());
- newFont->_setThisPtr(newFont);
- return newFont;
- }
- }
|