tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user