diff --git a/trdg/computer_text_generator.py b/trdg/computer_text_generator.py index eb016e2ef..e9d0033d8 100644 --- a/trdg/computer_text_generator.py +++ b/trdg/computer_text_generator.py @@ -104,7 +104,7 @@ def _generate_horizontal_text( if not word_split: text_width += character_spacing * (len(text) - 1) - text_height = max([get_text_height(image_font, p) for p in splitted_text]) + text_height = max([get_text_height(image_font, p) for p in splitted_text]) * 2 txt_img = Image.new("RGBA", (text_width, text_height), (0, 0, 0, 0)) txt_mask = Image.new("RGB", (text_width, text_height), (0, 0, 0))