Package motherhamster :: Module prettytext :: Class GlyphSet

Class GlyphSet



            object --+    
                     |    
cheekpouches.AssetBase --+
                         |
                        GlyphSet

an asset that lets you specify font characteristics and pretty filters and then caches individual characters for printing

Instance Methods
 
height(...)
the class for an editable number that can take a range of values
 
color(...)
the class for an editable color
 
test_string(...)
the class for an editable string on an asset
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
char(self, char_index, font_size=None)
 
char_width(self, char_index, font_size=None)
 
char_height(self, char_index, font_size=None)
 
char_size(self, char_index, font_size=None)
 
typeout(self, text, display, position)
 
filter_surface(self, surface, hotspot)
 
asset_editor_image(self)
Returns an image representation of the asset as a pygame surface
 
asset_set_property(self, key, value)
A function the editor calls to change a property the editor should never edit an asset any other way

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

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

Class Variables
  font = AssetRef(FontAsset, "!None", "which font to use")
Properties

Inherited from object: __class__

Method Details

__init__(self)
(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)

asset_set_property(self, key, value)

 
A function the editor calls to change a property the editor should never edit an asset any other way
Overrides: cheekpouches.AssetBase.asset_set_property
(inherited documentation)