Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FontManager.h 626B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*!
  2. * \file include/FontManager.h
  3. * \brief Font manager
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _FONT_MANAGER_H_
  8. #define _FONT_MANAGER_H_
  9. #include <vector>
  10. #include "Font.h"
  11. class FontManager : public Font {
  12. public:
  13. /*!
  14. * \brief Constructs an object of FontManager
  15. */
  16. FontManager();
  17. /*!
  18. * \brief Deconstructs an object of FontManager
  19. */
  20. virtual ~FontManager();
  21. virtual int initialize();
  22. virtual void writeString(FontString &s);
  23. private:
  24. void add(Font *f, const char *e);
  25. int font;
  26. std::vector<Font *> fonts;
  27. std::vector<const char *> extensions;
  28. };
  29. #endif