如何使用 python-pptx 库更改字体大小

问题描述 投票:0回答:0

我正在尝试使用 Python 更改我添加到 PowerPoint 演示文稿中的项目符号的字体大小。

for bullet_point in text:
       i += 0.5
       body_shape = slide.shapes.add_textbox(left=Inches(1), top=Inches(i), width=Inches(6),       height=Inches(1))
       tf = body_shape.text_frame
       tf.text = bullet_point

为什么这不能正常工作?

python powerpoint
© www.soinside.com 2019 - 2024. All rights reserved.