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):
...
| Parameter | Type | Description |
|---|---|---|
| script | str | The BCP-47 script code (e.g., “Arab”, “Hebr”, “Hans”) identifying the writing system. |
| font_name | str | The 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
- class
IFonts - module
aspose.slides - library
Aspose.Slides