SetScriptFont()
IFonts::SetScriptFont(System::String, System::String) method
Assigns a font name to a specific script tag, which defines how text of that script will be rendered in the presentation.
virtual void Aspose::Slides::IFonts::SetScriptFont(System::String script, System::String fontName)=0
Arguments
Parameter | Type | Description |
---|---|---|
script | System::String | The BCP-47 script code (e.g., "Arab", "Hebr", "Hans") identifying the writing system. |
fontName | System::String | The name of the font to assign to the specified script. |
Remarks
This example shows how to set the font for the Arabic script to "Segoe UI":
presentation->get_MasterTheme()->get_FontScheme()->get_Major()->SetScriptFont(u"Arab", u"Segoe UI");
See Also
- Class String
- Class IFonts
- Namespace Aspose::Slides
- Library Aspose.Slides