@EditFont.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class EditFont
  4. {
  5. static cchar8 *Ascii;
  6. bool diagonal_shadow,
  7. clear_type, // works better when font is small
  8. software,
  9. ascii, german, french, polish, chinese, japanese, korean, russian;
  10. sbyte mip_maps;
  11. int size;
  12. flt scale,
  13. weight,
  14. min_filter,
  15. shadow_blur,
  16. shadow_opacity,
  17. shadow_spread;
  18. Str font, custom_chars;
  19. TimeStamp diagonal_shadow_time,
  20. clear_type_time,
  21. software_time,
  22. ascii_time, german_time, french_time, polish_time, chinese_time, japanese_time, korean_time, russian_time,
  23. mip_maps_time,
  24. size_time,
  25. scale_time,
  26. weight_time,
  27. min_filter_time,
  28. shadow_blur_time,
  29. shadow_opacity_time,
  30. shadow_spread_time,
  31. font_time, custom_chars_time;
  32. void reset();
  33. Str chars()C;
  34. bool make(Font &font, C Str *chars=null)C;
  35. bool newer(C EditFont &src)C;
  36. bool equal(C EditFont &src)C;
  37. void newData();
  38. bool sync(C EditFont &src);
  39. bool undo(C EditFont &src);
  40. // io
  41. bool save(File &f)C;
  42. bool load(File &f);
  43. bool load(C Str &name);
  44. public:
  45. EditFont();
  46. };
  47. /******************************************************************************/
  48. /******************************************************************************/
  49. /******************************************************************************/