GetScriptFont()

IFonts::GetScriptFont(System::String) method

Gets the font name associated with a specific script tag from the presentation theme.

virtual System::String Aspose::Slides::IFonts::GetScriptFont(System::String script)=0

Arguments

ParameterTypeDescription
scriptSystem::StringThe BCP-47 script code (e.g., "Latn", "Cyrl", "Jpan") used to identify a writing system.

Return Value

The name of the font used for the specified script, or null if the script is not defined.

Remarks

This example demonstrates how to retrieve the font assigned to the Cyrillic script in the presentation theme.

System::String font = presentation->get_MasterTheme()->get_FontScheme()->get_Major()->GetScriptFont(u"Cyrl");
System::Console::WriteLine(System::String(u"Font for Cyrillic script: ") + font);

See Also