Set font type and size
Select the shape by
nameyou want to modify. See here to find shape names.Specify the text need amending under
text_run. Text within one textbox can be split into multiple chunks.Add font setting
font_typeor font size settingfont_sizefor selected text undertext_properties.Insert
new_lineas boolean before anothertext_run.
Before and after:


Template Presentation
JSON Payload
{
"presentation": {
"template": "slides_as_template_text_font_size.pptx",
"slides": [
{
"slide_index": 0,
"shapes": [
{
"name": "Title 1",
"text": [
{
"text_run": "Text font\n",
"text_properties": {
"font_type": "Arial",
"font_size": 32
}
},
{
"text_run": "Text font",
"text_properties": {
"font_type": "Arial",
"font_size": 25
}
}
]
}
]
}
]
}
}Last updated
Was this helpful?