def create_text_wand(font_size, font_path=None): ans = DrawingWand() if font_path is not None: ans.font = font_path ans.font_size = font_size ans.gravity = 'CenterGravity' ans.text_alias = True return ans
def create_text_wand(font_size, font_path=None): if font_path is None: font_path = tweaks['generate_cover_title_font'] if font_path is None: font_path = P('fonts/liberation/LiberationSerif-Bold.ttf') ans = DrawingWand() ans.font = font_path ans.font_size = font_size ans.gravity = 'CenterGravity' ans.text_alias = True return ans