FontSubstitutionInfo
Contents
[
Hide
]Inheritance: java.lang.Object
public class FontSubstitutionInfo
This structure represents the information about the font replacement when it will be rendered.
Presentation pres = new Presentation("pres.pptx"); try { for (FontSubstitutionInfo fontSubstitution : pres.getFontsManager().getSubstitutions()) { System.out.println(fontSubstitution.getOriginalFontName() + " -> " + fontSubstitution.getSubstitutedFontName()); } } finally { if (pres != null) pres.dispose(); }
Constructors
Constructor | Description |
---|---|
FontSubstitutionInfo(String originFontName, String substFontName) | Creates an instance of FontSubstitutionInfo class. |
Methods
Method | Description |
---|---|
getOriginalFontName() | Indicates source font name in presentation. |
getSubstitutedFontName() | Indicates the replacement font name for the original font. |
FontSubstitutionInfo(String originFontName, String substFontName)
public FontSubstitutionInfo(String originFontName, String substFontName)
Creates an instance of FontSubstitutionInfo class.
Parameters:
Parameter | Type | Description |
---|---|---|
originFontName | java.lang.String | Source font name in presentation String |
substFontName | java.lang.String | Replacement font name for the original font String |
getOriginalFontName()
public final String getOriginalFontName()
Indicates source font name in presentation. Read-only String
Returns: java.lang.String
getSubstitutedFontName()
public final String getSubstitutedFontName()
Indicates the replacement font name for the original font. Read-only String
Returns: java.lang.String