BsFontManager.h 854 B

1234567891011121314151617181920212223242526272829303132
  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. /** @cond INTERNAL */
  9. /** @addtogroup Text
  10. * @{
  11. */
  12. /** Handles creation of fonts. */
  13. class BS_CORE_EXPORT FontManager : public Module<FontManager>
  14. {
  15. public:
  16. /** Creates a new font from the provided populated font data structure. */
  17. FontPtr create(const Vector<SPtr<FontBitmap>>& fontData) const;
  18. /**
  19. * Creates an empty font.
  20. *
  21. * @note Internal method. Used by factory methods.
  22. */
  23. FontPtr _createEmpty() const;
  24. };
  25. /** @} */
  26. /** @endcond */
  27. }