CmFontImportOptions.cpp 918 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "CmFontImportOptions.h"
  2. #include "CmFontImportOptionsRTTI.h"
  3. namespace CamelotFramework
  4. {
  5. FontImportOptions::FontImportOptions()
  6. :mDPI(72), mAntialiasing(true)
  7. {
  8. mCharIndexRanges.push_back(std::make_pair(33, 166)); // Most used ASCII characters
  9. }
  10. void FontImportOptions::addCharIndexRange(UINT32 from, UINT32 to)
  11. {
  12. mCharIndexRanges.push_back(std::make_pair(from, to));
  13. }
  14. void FontImportOptions::clearCharIndexRanges()
  15. {
  16. mCharIndexRanges.clear();
  17. }
  18. /************************************************************************/
  19. /* SERIALIZATION */
  20. /************************************************************************/
  21. RTTITypeBase* FontImportOptions::getRTTIStatic()
  22. {
  23. return FontImportOptionsRTTI::instance();
  24. }
  25. RTTITypeBase* FontImportOptions::getRTTI() const
  26. {
  27. return FontImportOptions::getRTTIStatic();
  28. }
  29. }