def __init__(self, width, text="", font_name="Droid Sans,Bitstream Vera Sans", font_size=16, font_color=(0xFF,0xFF,0xFF), font_bold=False, font_italic=False, sub_dict={}):
		self.width = width
		self.original_text = text
		self.font = resource_loader.get_font(font_name, font_size, font_bold, font_italic)
		self.font_color=font_color
		self.sub_dict = sub_dict
		self.reset()
	def reset_for_new_rect(self):
		if self.label != None:
			self.font = resource_loader.get_font(self.font_name, int(self.font_size))
			self.label_surface = self.font.render(str(self.label), True, self.fg_color)
	def reset_for_new_rect(self):
		self.font = resource_loader.get_font(self.font_name, self.font_size)
		refresh_text = self.stored_text
		self.stored_text = None
		self.set_text(refresh_text)