Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Font.cpp 382B

123456789101112131415161718192021222324
  1. /*!
  2. * \file src/Font.cpp
  3. * \brief Font implementation
  4. *
  5. * \author xythobuz
  6. */
  7. #include "global.h"
  8. #include "utils/strings.h"
  9. #include "Font.h"
  10. Font::~Font() {
  11. if (mFontName)
  12. delete [] mFontName;
  13. }
  14. void Font::setFont(const char *font) {
  15. assert(font != NULL);
  16. assert(font[0] != '\0');
  17. assert(mFontInit == false);
  18. mFontName = fullPath(font, 0);
  19. }