Package parpg :: Module font :: Class PARPGFont
[hide private]
[frames] | no frames]

Class PARPGFont

source code

fife.extensions.pychan.fonts.Font --+
                                    |
                                   PARPGFont

Font class for PARPG This class behaves identical to PyChan's Font class except in initialization. Ratherthan take a name and a get object, this class takes a fontdef and settings object as explained below. This class is necessary because the original Font class was too restrictive on how it accepted objects

Instance Methods [hide private]
 
__init__(self, fontdef, settings) source code
Method Details [hide private]

__init__(self, fontdef, settings)
(Constructor)

source code 
Parameters:
  • fontdef (dictionary) - defines the font's name, size, type, and optionally row spacing as well as glyph spacing.
  • settings (parpg.settings.Settings object) - settings object used to dynamically determine the font's source location