set_script_font method

set_script_font

Assigns a font name to a specific script tag, which defines how text of that script will be rendered in the presentation.

def set_script_font(self, script, font_name):
    ...
ParameterTypeDescription
scriptstrThe BCP-47 script code (e.g., “Arab”, “Hebr”, “Hans”) identifying the writing system.
font_namestrThe name of the font to assign to the specified script.

Examples

This example shows how to set the font for the Arabic script to “Segoe UI”:

See Also