Made masking optional to keep the text from thining out too much
This commit is contained in:
parent
a8cad34b32
commit
385ae3da11
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ paddingcorrection = -5
|
|||
class TextDesign (DesignEntity):
|
||||
"""Object that manages all information relevant to text
|
||||
and prints it to an image"""
|
||||
def __init__ (self, size, font = None, fontsize = 12, text = "", horizontalalignment = "left", verticalalignment = "top"):
|
||||
super(TextDesign, self).__init__(size, mask = True)
|
||||
def __init__ (self, size, font = None, fontsize = 12, text = "", horizontalalignment = "left", verticalalignment = "top", mask=True):
|
||||
super(TextDesign, self).__init__(size, mask = mask)
|
||||
if font is None:
|
||||
font = defaultfont
|
||||
self.font_family = font
|
||||
|
|
Loading…
Reference in a new issue