PolyFontManager.h 615 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * PolyFontManager.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/3/10.
  6. * Copyright 2010 Ivan Safrin. All rights reserved.
  7. *
  8. */
  9. // @package Services
  10. #pragma once
  11. #include "PolyGlobals.h"
  12. #include "PolyFont.h"
  13. #include <vector>
  14. #include <string>
  15. using std::vector;
  16. using std::string;
  17. namespace Polycode {
  18. class FontEntry {
  19. public:
  20. string fontName;
  21. Font *font;
  22. };
  23. class _PolyExport FontManager {
  24. public:
  25. FontManager();
  26. ~FontManager();
  27. void registerFont(string fontName, string fontPath);
  28. Font *getFontByName(string fontName);
  29. private:
  30. vector <FontEntry> fonts;
  31. };
  32. }