Package fife :: Module fife :: Class TTFont
[hide private]
[frames] | no frames]

Class TTFont

source code

_object --+        
          |        
      IFont --+    
              |    
       FontBase --+
                  |
                 TTFont

Proxy of C++ FIFE::TrueTypeFont class

Instance Methods [hide private]
 
__repr__(self)
repr(x)
source code
 
__init__(self, *args)
__init__(FIFE::TrueTypeFont self, std::string const & filename, int32_t size) -> TTFont
source code
 
setColor(self, *args)
setColor(TTFont self, Uint8 r, Uint8 g, Uint8 b, Uint8 a=255) setColor(TTFont self, Uint8 r, Uint8 g, Uint8 b)
source code
 
getWidth(self, *args)
getWidth(TTFont self, std::string const & text) -> int32_t
source code
 
getHeight(self)
getHeight(TTFont self) -> int32_t
source code

Inherited from IFont: getColor, getGlyphSpacing, getRowSpacing, isAntiAlias, setAntiAlias, setGlyphSpacing, setRowSpacing

Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _fife.delete_TTFont
  __del__ = lambda self:
Method Details [hide private]

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: _swig_repr

__init__(self, *args)
(Constructor)

source code 

__init__(FIFE::TrueTypeFont self, std::string const & filename, int32_t size) -> TTFont

Overrides: IFont.__init__

setColor(self, *args)

source code 

setColor(TTFont self, Uint8 r, Uint8 g, Uint8 b, Uint8 a=255) setColor(TTFont self, Uint8 r, Uint8 g, Uint8 b)

Overrides: IFont.setColor

getWidth(self, *args)

source code 

getWidth(TTFont self, std::string const & text) -> int32_t

Overrides: IFont.getWidth

getHeight(self)

source code 

getHeight(TTFont self) -> int32_t

Overrides: IFont.getHeight