Font.h 690 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. GWEN
  3. Copyright (c) 2010 Facepunch Studios
  4. See license in Gwen.h
  5. */
  6. #pragma once
  7. #ifndef GWEN_FONT_H
  8. #define GWEN_FONT_H
  9. #include <string>
  10. #include <list>
  11. #include "Gwen/BaseRender.h"
  12. namespace Gwen
  13. {
  14. struct Font
  15. {
  16. typedef std::list<Font*> List;
  17. Font()
  18. {
  19. data = NULL;
  20. facename = L"Arial";
  21. size = 10;
  22. dropshadow = false;
  23. bold = false;
  24. }
  25. UnicodeString facename;
  26. float size;
  27. bool bold;
  28. bool dropshadow;
  29. // This should be set by the renderer
  30. // if it tries to use a font where it's
  31. // NULL.
  32. void* data;
  33. // This is the real font size, after it's
  34. // been scaled by Render->Scale()
  35. float realsize;
  36. };
  37. } //namespace Gwen
  38. #endif