BsFontManager.h 827 B

123456789101112131415161718192021222324252627282930
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsModule.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Text-Internal
  9. * @{
  10. */
  11. /** Handles creation of fonts. */
  12. class BS_CORE_EXPORT FontManager : public Module<FontManager>
  13. {
  14. public:
  15. /** Creates a new font from the provided populated font data structure. */
  16. SPtr<Font> create(const Vector<SPtr<FontBitmap>>& fontData) const;
  17. /**
  18. * Creates an empty font.
  19. *
  20. * @note Internal method. Used by factory methods.
  21. */
  22. SPtr<Font> _createEmpty() const;
  23. };
  24. /** @} */
  25. }