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

ParameterTypeDescription
scriptSystem::StringThe BCP-47 script code (e.g., "Arab", "Hebr", "Hans") identifying the writing system.
fontNameSystem::StringThe 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