PolyFont.h 546 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * PolyFont.h
  3. * TAU
  4. *
  5. * Created by Ivan Safrin on 3/16/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package BasicTypes
  10. #pragma once
  11. #include "PolyLogger.h"
  12. #include "PolyGlobals.h"
  13. #include <string>
  14. #include "ft2build.h"
  15. #include FT_FREETYPE_H
  16. #include "OSBasics.h"
  17. using namespace std;
  18. namespace Polycode {
  19. class _PolyExport Font {
  20. public:
  21. Font(string fileName);
  22. ~Font();
  23. FT_Face getFace();
  24. bool isValid();
  25. private:
  26. unsigned char *buffer;
  27. bool valid;
  28. FT_Face ftFace;
  29. };
  30. }