BsFontImportOptions.cpp 910 B

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