Fonts
Fonts class
Fonts collection.
getComplexScriptFont
| Name | Description |
|---|---|
| getComplexScriptFont () | Returns or sets the complex script font. Read/write IFontData. |
Returns: FontData
getEastAsianFont
| Name | Description |
|---|---|
| getEastAsianFont () | Returns or sets the East Asian font. Read/write IFontData. |
Returns: FontData
getLatinFont
| Name | Description |
|---|---|
| getLatinFont () | Returns or sets the Latin font. Read/write IFontData. |
Returns: FontData
getScriptFont
| Name | Description |
|---|---|
| getScriptFont (String) | Gets the font name associated with a specific script tag from the presentation theme. |
Parameters:
| Name | Type | Description |
|---|---|---|
| script | String | The BCP-47 script code (e.g., “Latn”, “Cyrl”, “Jpan”) used to identify a writing system. |
Returns: String
getScriptFontMap
| Name | Description |
|---|---|
| getScriptFontMap () | Returns a dictionary of all script font definitions in the presentation. |
Returns: Dictionary
removeScriptFont
| Name | Description |
|---|---|
| removeScriptFont (String) | Removes the font setting associated with a specific script tag from the theme’s font collection. |
Parameters:
| Name | Type | Description |
|---|---|---|
| script | String | The BCP-47 script code whose font setting should be removed. |
Returns: void
setComplexScriptFont
| Name | Description |
|---|---|
| setComplexScriptFont (FontData) | Returns or sets the complex script font. Read/write IFontData. |
Returns: void
setEastAsianFont
| Name | Description |
|---|---|
| setEastAsianFont (FontData) | Returns or sets the East Asian font. Read/write IFontData. |
Returns: void
setLatinFont
| Name | Description |
|---|---|
| setLatinFont (FontData) | Returns or sets the Latin font. Read/write IFontData. |
Returns: void
setScriptFont
| Name | Description |
|---|---|
| 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:
| Name | Type | Description |
|---|---|---|
| script | String | The BCP-47 script code (e.g., “Arab”, “Hebr”, “Hans”) identifying the writing system. |
| fontName | String | The name of the font to assign to the specified script. |
Returns: void