Fix multi font in slide side textbox
Browse files- routers/gemini.py +3 -3
routers/gemini.py
CHANGED
|
@@ -252,10 +252,10 @@ def generate_pptx_from_data(presentation_data: PresentationData) -> str:
|
|
| 252 |
fill.fore_color.rgb = RGBColor(247, 248, 250)
|
| 253 |
side_tf = side_box.text_frame
|
| 254 |
side_tf.word_wrap = True
|
| 255 |
-
print(presentation_data.side_text)
|
| 256 |
side_tf.text = presentation_data.side_text
|
| 257 |
-
side_tf.paragraphs
|
| 258 |
-
|
|
|
|
| 259 |
side_tf.vertical_anchor = MSO_ANCHOR.MIDDLE
|
| 260 |
|
| 261 |
# Save to temporary file
|
|
|
|
| 252 |
fill.fore_color.rgb = RGBColor(247, 248, 250)
|
| 253 |
side_tf = side_box.text_frame
|
| 254 |
side_tf.word_wrap = True
|
|
|
|
| 255 |
side_tf.text = presentation_data.side_text
|
| 256 |
+
for paragraph in side_tf.paragraphs:
|
| 257 |
+
paragraph.font.size = Pt(12)
|
| 258 |
+
paragraph.font.name = "Verdana"
|
| 259 |
side_tf.vertical_anchor = MSO_ANCHOR.MIDDLE
|
| 260 |
|
| 261 |
# Save to temporary file
|