SetScriptFont
Fonts.SetScriptFont method
Assigns a font name to a specific script tag, which defines how text of that script will be rendered in the presentation.
public void SetScriptFont(string script, string fontName)
Parameter | Type | Description |
---|---|---|
script | String | The BCP-47 script code (e.g., “Arab”, “Hebr”, “Hans”) identifying the writing system. |
fontName | String | 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”:
[C#]
presentation.MasterTheme.FontScheme.Major.SetScriptFont("Arab", "Segoe UI");
See Also
- class Fonts
- namespace Aspose.Slides
- assembly Aspose.Slides