Spaces:
Running
Running
Update pages/RoadMap.py
Browse files- pages/RoadMap.py +1 -1
pages/RoadMap.py
CHANGED
@@ -53,7 +53,7 @@ def create_roadmap_image(topics):
|
|
53 |
[box_x, box_y, box_x + box_width, box_y + box_height],
|
54 |
outline="black", width=2
|
55 |
)
|
56 |
-
text_width, text_height = draw.
|
57 |
text_x = box_x + (box_width - text_width) // 2
|
58 |
text_y = box_y + (box_height - text_height) // 2
|
59 |
draw.text((text_x, text_y), topic, fill="black", font=font)
|
|
|
53 |
[box_x, box_y, box_x + box_width, box_y + box_height],
|
54 |
outline="black", width=2
|
55 |
)
|
56 |
+
text_width, text_height = draw.textbbox((0, 0), topic, font=font)[2:]
|
57 |
text_x = box_x + (box_width - text_width) // 2
|
58 |
text_y = box_y + (box_height - text_height) // 2
|
59 |
draw.text((text_x, text_y), topic, fill="black", font=font)
|