Font.pkg 698 B

12345678910111213141516171819202122232425
  1. $#include "UI/Font.h"
  2. enum FontType
  3. {
  4. FONT_NONE = 0,
  5. FONT_FREETYPE,
  6. FONT_BITMAP,
  7. MAX_FONT_TYPES
  8. };
  9. class Font : public Resource
  10. {
  11. void SetAbsoluteGlyphOffset(const IntVector2& offset);
  12. void SetScaledGlyphOffset(const Vector2& offset);
  13. const IntVector2& GetAbsoluteGlyphOffset() const;
  14. const Vector2& GetScaledGlyphOffset() const;
  15. IntVector2 GetTotalGlyphOffset(int pointSize) const;
  16. FontType GetFontType() const;
  17. bool IsSDFFont() const;
  18. tolua_property__get_set IntVector2 absoluteGlyphOffset;
  19. tolua_property__get_set Vector2 scaledGlyphOffset;
  20. tolua_readonly tolua_property__get_set FontType fontType;
  21. };