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)
ParameterTypeDescription
scriptStringThe BCP-47 script code (e.g., “Arab”, “Hebr”, “Hans”) identifying the writing system.
fontNameStringThe 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