FontSubstitutionInfo

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

ConstructorDescription
FontSubstitutionInfo(String originFontName, String substFontName)Creates an instance of FontSubstitutionInfo class.

Methods

MethodDescription
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:

ParameterTypeDescription
originFontNamejava.lang.StringSource font name in presentation String
substFontNamejava.lang.StringReplacement 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