com.aspose.note.fonts

Class DocumentFontsSubsystem

  • All Implemented Interfaces:
    IFontsSubsystem


    public class DocumentFontsSubsystem
    extends FontsSubsystem

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

    • Constructor Detail

      • DocumentFontsSubsystem

        @Deprecated
        public DocumentFontsSubsystem(Font defaultFont,
                                                   HashMap<String,String> fontsSubstitutions)
        Deprecated. Obsolete since 20.3 release. Use DocumentFontsSubsystem(InputStream, HashMap<String, String> fontsSubstitutions) and DocumentFontsSubsystem(String, HashMap<String, String> fontsSubstitutions) instead.

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        defaultFont - The default Font.
        fontsSubstitutions - The fonts substitutions.
      • DocumentFontsSubsystem

        @Deprecated
        public DocumentFontsSubsystem(Font defaultFont)
        Deprecated. Obsolete since 20.3 release. Use DocumentFontsSubsystem(InputStream, HashMap<String, String> fontsSubstitutions) and DocumentFontsSubsystem(String, HashMap<String, String> fontsSubstitutions) instead.

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        defaultFont - The default Font.
      • DocumentFontsSubsystem

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

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        defaultFontStream - The stream containing default Font.
        fontsSubstitutions - The fonts substitutions.
      • DocumentFontsSubsystem

        public DocumentFontsSubsystem(InputStream defaultFontStream)

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        defaultFontStream - The stream containing default Font.
      • DocumentFontsSubsystem

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

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        defaultFontFile - The path to the file containing default Font.
        fontsSubstitutions - The fonts substitutions.
      • DocumentFontsSubsystem

        public DocumentFontsSubsystem(String defaultFontFile)

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        defaultFontFile - The path to the file containing default Font.
      • DocumentFontsSubsystem

        public DocumentFontsSubsystem(HashMap<String,String> fontsSubstitutions)

        Initializes a new instance of the DocumentFontsSubsystem class.

        Parameters:
        fontsSubstitutions - The fonts substitutions.
      • DocumentFontsSubsystem

        public DocumentFontsSubsystem()

        Initializes a new instance of the DocumentFontsSubsystem class.

    • Method Detail

      • setDefault

        public static void setDefault(DocumentFontsSubsystem value)

        Gets or sets the static default instance.