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
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
defaultFontStream | java.io.InputStream | The stream containing default Font. |
fontsSubstitutions | java.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:
Parameter | Type | Description |
---|---|---|
defaultFontStream | java.io.InputStream | The 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:
Parameter | Type | Description |
---|---|---|
defaultFontFile | java.lang.String | The path to the file containing default Font. |
fontsSubstitutions | java.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:
Parameter | Type | Description |
---|---|---|
defaultFontFile | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
fontsSubstitutions | java.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:
Parameter | Type | Description |
---|---|---|
defaultFontName | java.lang.String | The default font name. |
fontsSubstitutions | java.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:
Parameter | Type | Description |
---|---|---|
defaultFontName | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | The file containing default font name. |
fontsSubstitutions | java.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:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | The 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:
Parameter | Type | Description |
---|---|---|
defaultFontStream | java.io.InputStream | The stream containing the default font name. |
fontsSubstitutions | java.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:
Parameter | Type | Description |
---|---|---|
defaultFontStream | java.io.InputStream | The 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:
Parameter | Type | Description |
---|---|---|
value | DocumentFontsSubsystem |