def get_text_style(text):
 style = {}
 style['alpha'] = text.get_alpha()
 if (style['alpha'] is None):
  style['alpha'] = 1
 style['fontsize'] = text.get_size()
 style['color'] = color_to_hex(text.get_color())
 style['halign'] = text.get_horizontalalignment()
 style['valign'] = text.get_verticalalignment()
 style['malign'] = text._multialignment
 style['rotation'] = text.get_rotation()
 style['zorder'] = text.get_zorder()
 return style

def get_text_style ( text ) : style = { } style [ 'alpha' ] = text . get_alpha ( ) if ( style [ 'alpha' ] is None ) : style [ 'alpha' ] = 1 style [ 'fontsize' ] = text . get_size ( ) style [ 'color' ] = color_to_hex ( text . get_color ( ) ) style [ 'halign' ] = text . get_horizontalalignment ( ) style [ 'valign' ] = text . get_verticalalignment ( ) style [ 'malign' ] = text . _multialignment style [ 'rotation' ] = text . get_rotation ( ) style [ 'zorder' ] = text . get_zorder ( ) return style
return the text style dict for a text instance .