This commit is contained in:
2025-09-13 10:38:28 +03:00
parent 7c40714d48
commit 7c041e2a26
45 changed files with 1936 additions and 2 deletions

View File

@@ -231,7 +231,7 @@ def calculate_text_scaling(text, font, target_width, target_height):
current_height = bbox[3] - bbox[1]
if current_width == 0 or current_height == 0:
return 1.0, 1.0
return 1.0, 1.0, 1.0
# Calculate scaling factors
width_scale = target_width / current_width