Fonts

Fonts class

Fonts collection.

getComplexScriptFont

NameDescription
getComplexScriptFont ()Returns or sets the complex script font. Read/write IFontData.

Returns: FontData


getEastAsianFont

NameDescription
getEastAsianFont ()Returns or sets the East Asian font. Read/write IFontData.

Returns: FontData


getLatinFont

NameDescription
getLatinFont ()Returns or sets the Latin font. Read/write IFontData.

Returns: FontData


getScriptFont

NameDescription
getScriptFont (String)Gets the font name associated with a specific script tag from the presentation theme.

Parameters:

NameTypeDescription
scriptStringThe BCP-47 script code (e.g., “Latn”, “Cyrl”, “Jpan”) used to identify a writing system.

Returns: String


getScriptFontMap

NameDescription
getScriptFontMap ()Returns a dictionary of all script font definitions in the presentation.

Returns: Dictionary


removeScriptFont

NameDescription
removeScriptFont (String)Removes the font setting associated with a specific script tag from the theme’s font collection.

Parameters:

NameTypeDescription
scriptStringThe BCP-47 script code whose font setting should be removed.

setComplexScriptFont

NameDescription
setComplexScriptFont (FontData)Returns or sets the complex script font. Read/write IFontData.

setEastAsianFont

NameDescription
setEastAsianFont (FontData)Returns or sets the East Asian font. Read/write IFontData.

setLatinFont

NameDescription
setLatinFont (FontData)Returns or sets the Latin font. Read/write IFontData.

setScriptFont

NameDescription
setScriptFont (String, String)Assigns a font name to a specific script tag, which defines how text of that script will be rendered in the presentation.

Parameters:

NameTypeDescription
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.