BsFontManager.h 602 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "BsCorePrerequisites.h"
  3. #include "BsModule.h"
  4. namespace BansheeEngine
  5. {
  6. /** @cond INTERNAL */
  7. /** @addtogroup Text
  8. * @{
  9. */
  10. /** Handles creation of fonts. */
  11. class BS_CORE_EXPORT FontManager : public Module<FontManager>
  12. {
  13. public:
  14. /** Creates a new font from the provided populated font data structure. */
  15. FontPtr create(const Vector<SPtr<FontBitmap>>& fontData) const;
  16. /**
  17. * Creates an empty font.
  18. *
  19. * @note Internal method. Used by factory methods.
  20. */
  21. FontPtr _createEmpty() const;
  22. };
  23. /** @} */
  24. /** @endcond */
  25. }