FontSubstitute

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject

All Implemented Interfaces: java.io.Serializable

public class FontSubstitute extends ValueObject implements Serializable

Describes substitution for missing font.

Methods

Method Description
create(String originalFont, String substituteWith) Instantiate new font substitution pair.
getOriginalFontName() The original font name.
getSubstituteFontName() The substitute font name.

create(String originalFont, String substituteWith)

public static FontSubstitute create(String originalFont, String substituteWith)

Instantiate new font substitution pair.

Parameters:

Parameter Type Description
originalFont java.lang.String Font from the source document.
substituteWith java.lang.String Font which will be used to replace originalFont.

Returns: FontSubstitute - substitution pair

getOriginalFontName()

public String getOriginalFontName()

The original font name.

Returns: java.lang.String - the original font name.

getSubstituteFontName()

public String getSubstituteFontName()

The substitute font name.

Returns: java.lang.String - the substitute font name.