Made masking optional to keep the text from thining out too much

This commit is contained in:
Maximilian Giller 2019-03-03 13:52:36 +01:00
parent a8cad34b32
commit 385ae3da11

View file

@ -7,8 +7,8 @@ paddingcorrection = -5
class TextDesign (DesignEntity): class TextDesign (DesignEntity):
"""Object that manages all information relevant to text """Object that manages all information relevant to text
and prints it to an image""" and prints it to an image"""
def __init__ (self, size, font = None, fontsize = 12, text = "", horizontalalignment = "left", verticalalignment = "top"): def __init__ (self, size, font = None, fontsize = 12, text = "", horizontalalignment = "left", verticalalignment = "top", mask=True):
super(TextDesign, self).__init__(size, mask = True) super(TextDesign, self).__init__(size, mask = mask)
if font is None: if font is None:
font = defaultfont font = defaultfont
self.font_family = font self.font_family = font