コード例 #1
0
    def reset(self):
        """
		reset internal data here
		Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, 
		ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
		"""
        #['Format','Name','Fontname','Fontsize','PrimaryColour','SecondaryColour','OutlineColour','BackColour','Bold','Italic',
        #'Underline','StrikeOut','ScaleX','ScaleY','Spacing','Angle','BorderStyle','Outline','Shadow','Alignment','MarginL','MarginR','MarginV','Encoding']

        self.name = ''
        self.fontname = ''
        self.fontsize = ''

        self.primary_color = AssColor()
        self.secondary_color = AssColor()
        self.outline_color = AssColor()
        self.back_color = AssColor()

        self.bold = False
        self.italic = False
        self.underline = False
        self.strikeout = False

        self.scalex = 0  #Modifies the width of the font. [percent]
        self.scaley = 0  #Modifies the height of the font. [percent]
        self.spacing = 0  #Extra space between characters. [pixels]
        self.angle = 0.0  #The origin of the rotation is defined by the alignment. Can be a floating point number. [degrees]
        self.borderstyle = 0
        self.outline = 0
        self.shadow = 0
        self.alignment = 0
        self.margin_l = 0
        self.margin_r = 0
        self.margin_v = 0
        self.encoding = 0