| Modifier and Type | Method and Description |
|---|---|
IFontData |
getComplexScriptFont()
Returns or sets the complex script font.
|
IFontData |
getEastAsianFont()
Returns or sets the East Asian font.
|
IFontData |
getLatinFont()
Returns or sets the Latin font.
|
java.lang.String |
getScriptFont(java.lang.String script)
Gets the font name associated with a specific script tag from the presentation theme.
|
com.aspose.ms.System.Collections.Generic.Dictionary<java.lang.String,java.lang.String> |
getScriptFontMap()
Returns a dictionary of all script font definitions in the presentation.
|
void |
removeScriptFont(java.lang.String script)
Removes the font setting associated with a specific script tag from the theme's font collection.
|
void |
setComplexScriptFont(IFontData value)
Returns or sets the complex script font.
|
void |
setEastAsianFont(IFontData value)
Returns or sets the East Asian font.
|
void |
setLatinFont(IFontData value)
Returns or sets the Latin font.
|
void |
setScriptFont(java.lang.String script,
java.lang.String fontName)
Assigns a font name to a specific script tag, which defines how text of that script will be rendered in the presentation.
|
public final com.aspose.ms.System.Collections.Generic.Dictionary<java.lang.String,java.lang.String> getScriptFontMap()
Returns a dictionary of all script font definitions in the presentation.
Dictionary.Enumerator<String, String> map = presentation.getMasterTheme().getFontScheme().getMajor().getScriptFontMap().iterator(); while (map.hasNext()) { KeyValuePair<String, String> kvp = map.next(); System.out.println(kvp.getKey() + " ? " + kvp.getValue()); }
getScriptFontMap in interface IFontspublic final java.lang.String getScriptFont(java.lang.String script)
Gets the font name associated with a specific script tag from the presentation theme.
This example demonstrates how to retrieve the font assigned to the Cyrillic script in the presentation theme.String font = presentation.getMasterTheme().getFontScheme().getMajor().getScriptFont("Cyrl"); System.out.println("Font for Cyrillic script: " + font);
getScriptFont in interface IFontsscript - The BCP-47 script code (e.g., "Latn", "Cyrl", "Jpan") used to identify a writing system.null if the script is not defined.public final void setScriptFont(java.lang.String script,
java.lang.String fontName)
Assigns a font name to a specific script tag, which defines how text of that script will be rendered in the presentation.
This example shows how to set the font for the Arabic script to "Segoe UI":presentation.getMasterTheme().getFontScheme().getMajor().setScriptFont("Arab", "Segoe UI");
setScriptFont in interface IFontsscript - The BCP-47 script code (e.g., "Arab", "Hebr", "Hans") identifying the writing system.fontName - The name of the font to assign to the specified script.public final void removeScriptFont(java.lang.String script)
Removes the font setting associated with a specific script tag from the theme's font collection.
This example demonstrates how to remove the font mapping for the Hebrew script:presentation.getMasterTheme().getFontScheme().getMajor().removeScriptFont("Hebr");
removeScriptFont in interface IFontsscript - The BCP-47 script code whose font setting should be removed.public final IFontData getLatinFont()
Returns or sets the Latin font.
Read/write IFontData.
getLatinFont in interface IFontspublic final void setLatinFont(IFontData value)
Returns or sets the Latin font.
Read/write IFontData.
setLatinFont in interface IFontspublic final IFontData getEastAsianFont()
Returns or sets the East Asian font.
Read/write IFontData.
getEastAsianFont in interface IFontspublic final void setEastAsianFont(IFontData value)
Returns or sets the East Asian font.
Read/write IFontData.
setEastAsianFont in interface IFontspublic final IFontData getComplexScriptFont()
Returns or sets the complex script font.
Read/write IFontData.
getComplexScriptFont in interface IFontspublic final void setComplexScriptFont(IFontData value)
Returns or sets the complex script font.
Read/write IFontData.
setComplexScriptFont in interface IFontsCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.