DocumentFontsSubsystem

Inheritance: java.lang.Object, com.aspose.note.fonts.FontsSubsystem

public class DocumentFontsSubsystem extends FontsSubsystem

Simple implementation of Aspose.Note.Fonts.FontsSubsystem. Retrieves FontFamily object from OS.

Constructors

ConstructorDescription
DocumentFontsSubsystem(InputStream defaultFontStream, Map<String,String> fontsSubstitutions)Initializes a new instance of the DocumentFontsSubsystem class.
DocumentFontsSubsystem(InputStream defaultFontStream)Initializes a new instance of the DocumentFontsSubsystem class.
DocumentFontsSubsystem(String defaultFontFile, Map<String,String> fontsSubstitutions)Initializes a new instance of the DocumentFontsSubsystem class.
DocumentFontsSubsystem(String defaultFontFile)Initializes a new instance of the DocumentFontsSubsystem class.
DocumentFontsSubsystem(Map<String,String> fontsSubstitutions)Initializes a new instance of the DocumentFontsSubsystem class.
DocumentFontsSubsystem()Initializes a new instance of the DocumentFontsSubsystem class.

Methods

MethodDescription
usingDefaultFont(String defaultFontName, Map<String,String> fontsSubstitutions)Create new DocumentFontsSubsystem instance using specified default font name.
usingDefaultFont(String defaultFontName)Create new DocumentFontsSubsystem instance using specified default font name.
usingDefaultFontFromFile(String filePath, Map<String,String> fontsSubstitutions)Create new DocumentFontsSubsystem instance using a font from specified file as default.
usingDefaultFontFromFile(String filePath)Create new DocumentFontsSubsystem instance using specified default font name.
usingDefaultFontFromStream(InputStream defaultFontStream, Map<String,String> fontsSubstitutions)Create new DocumentFontsSubsystem instance using a font from specified stream as default.
usingDefaultFontFromStream(InputStream defaultFontStream)Create new DocumentFontsSubsystem instance using a font from specified stream as default.
getDefault()Gets or sets the static default instance.
setDefault(DocumentFontsSubsystem value)Gets or sets the static default instance.

DocumentFontsSubsystem(InputStream defaultFontStream, Map<String,String> fontsSubstitutions)

public DocumentFontsSubsystem(InputStream defaultFontStream, Map<String,String> fontsSubstitutions)

Initializes a new instance of the DocumentFontsSubsystem class.

Parameters:

ParameterTypeDescription
defaultFontStreamjava.io.InputStreamThe stream containing default Font.
fontsSubstitutionsjava.util.Map<java.lang.String,java.lang.String>The fonts substitutions.

DocumentFontsSubsystem(InputStream defaultFontStream)

public DocumentFontsSubsystem(InputStream defaultFontStream)

Initializes a new instance of the DocumentFontsSubsystem class.

Parameters:

ParameterTypeDescription
defaultFontStreamjava.io.InputStreamThe stream containing default Font.

DocumentFontsSubsystem(String defaultFontFile, Map<String,String> fontsSubstitutions)

public DocumentFontsSubsystem(String defaultFontFile, Map<String,String> fontsSubstitutions)

Initializes a new instance of the DocumentFontsSubsystem class.

Parameters:

ParameterTypeDescription
defaultFontFilejava.lang.StringThe path to the file containing default Font.
fontsSubstitutionsjava.util.Map<java.lang.String,java.lang.String>The fonts substitutions.

DocumentFontsSubsystem(String defaultFontFile)

public DocumentFontsSubsystem(String defaultFontFile)

Initializes a new instance of the DocumentFontsSubsystem class.

Parameters:

ParameterTypeDescription
defaultFontFilejava.lang.StringThe path to the file containing default Font.

DocumentFontsSubsystem(Map<String,String> fontsSubstitutions)

public DocumentFontsSubsystem(Map<String,String> fontsSubstitutions)

Initializes a new instance of the DocumentFontsSubsystem class.

Parameters:

ParameterTypeDescription
fontsSubstitutionsjava.util.Map<java.lang.String,java.lang.String>The fonts substitutions.

DocumentFontsSubsystem()

public DocumentFontsSubsystem()

Initializes a new instance of the DocumentFontsSubsystem class.

usingDefaultFont(String defaultFontName, Map<String,String> fontsSubstitutions)

public static DocumentFontsSubsystem usingDefaultFont(String defaultFontName, Map<String,String> fontsSubstitutions)

Create new DocumentFontsSubsystem instance using specified default font name.

Parameters:

ParameterTypeDescription
defaultFontNamejava.lang.StringThe default font name.
fontsSubstitutionsjava.util.Map<java.lang.String,java.lang.String>The fonts substitutions.

Returns: DocumentFontsSubsystem - DocumentFontsSubsystem.

usingDefaultFont(String defaultFontName)

public static DocumentFontsSubsystem usingDefaultFont(String defaultFontName)

Create new DocumentFontsSubsystem instance using specified default font name.

Parameters:

ParameterTypeDescription
defaultFontNamejava.lang.StringThe default font name.

Returns: DocumentFontsSubsystem - DocumentFontsSubsystem.

usingDefaultFontFromFile(String filePath, Map<String,String> fontsSubstitutions)

public static DocumentFontsSubsystem usingDefaultFontFromFile(String filePath, Map<String,String> fontsSubstitutions)

Create new DocumentFontsSubsystem instance using a font from specified file as default.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringThe file containing default font name.
fontsSubstitutionsjava.util.Map<java.lang.String,java.lang.String>The fonts substitutions.

Returns: DocumentFontsSubsystem - DocumentFontsSubsystem.

usingDefaultFontFromFile(String filePath)

public static DocumentFontsSubsystem usingDefaultFontFromFile(String filePath)

Create new DocumentFontsSubsystem instance using specified default font name.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringThe file containing default font name.

Returns: DocumentFontsSubsystem - DocumentFontsSubsystem.

usingDefaultFontFromStream(InputStream defaultFontStream, Map<String,String> fontsSubstitutions)

public static DocumentFontsSubsystem usingDefaultFontFromStream(InputStream defaultFontStream, Map<String,String> fontsSubstitutions)

Create new DocumentFontsSubsystem instance using a font from specified stream as default.

Parameters:

ParameterTypeDescription
defaultFontStreamjava.io.InputStreamThe stream containing the default font name.
fontsSubstitutionsjava.util.Map<java.lang.String,java.lang.String>The fonts substitutions.

Returns: DocumentFontsSubsystem - DocumentFontsSubsystem.

usingDefaultFontFromStream(InputStream defaultFontStream)

public static DocumentFontsSubsystem usingDefaultFontFromStream(InputStream defaultFontStream)

Create new DocumentFontsSubsystem instance using a font from specified stream as default.

Parameters:

ParameterTypeDescription
defaultFontStreamjava.io.InputStreamThe stream containing the default font name.

Returns: DocumentFontsSubsystem - DocumentFontsSubsystem.

getDefault()

public static DocumentFontsSubsystem getDefault()

Gets or sets the static default instance.

Returns: DocumentFontsSubsystem

setDefault(DocumentFontsSubsystem value)

public static void setDefault(DocumentFontsSubsystem value)

Gets or sets the static default instance.

Parameters:

ParameterTypeDescription
valueDocumentFontsSubsystem