Package motherhamster :: Module prettytext :: Class FontAsset

Class FontAsset



            object --+    
                     |    
cheekpouches.AssetBase --+
                         |
                        FontAsset

a python object representation of an Font asset it represents the ttf file and provides a facility for caching the pygame font objects for printing at a specific size

Instance Methods
 
__init__(self, asset_path)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
pygame_font(self, height)
 
asset_editor_image(self)
Returns an image representation of the asset as a pygame surface

Inherited from cheekpouches.AssetBase: __getinitargs__, __reduce__, asset_get_properties, asset_is_writable, asset_lose_monitor, asset_monitor_changes, asset_report_property_change, asset_save, asset_set_path, asset_set_property

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, asset_path)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: cheekpouches.AssetBase.__init__

asset_editor_image(self)

 
Returns an image representation of the asset as a pygame surface
Overrides: cheekpouches.AssetBase.asset_editor_image
(inherited documentation)