public interface IFonts
Represents fonts collection.
| 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.
|
void setLatinFont(IFontData value)
Returns or sets the Latin font.
Read/write IFontData.
IFontData getEastAsianFont()
Returns or sets the East Asian font.
Read/write IFontData.
void setEastAsianFont(IFontData value)
Returns or sets the East Asian font.
Read/write IFontData.
IFontData getComplexScriptFont()
Returns or sets the complex script font.
Read/write IFontData.
void setComplexScriptFont(IFontData value)
Returns or sets the complex script font.
Read/write IFontData.
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()); }
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);
script - The BCP-47 script code (e.g., "Latn", "Cyrl", "Jpan") used to identify a writing system.null if the script is not defined.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");
script - 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.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");
script - The BCP-47 script code whose font setting should be removed.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.