com.groupdocs.editor.htmlcss.resources.fonts

Class FontResourceBase

  • java.lang.Object
    • com.groupdocs.editor.htmlcss.resources.fonts.FontResourceBase
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler> Disposed 
    • Constructor Summary

      Constructors 
      Constructor and Description
      FontResourceBase() 
    • Field Detail

      • Disposed

        public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler> Disposed
    • Constructor Detail

      • FontResourceBase

        public FontResourceBase()
    • Method Detail

      • dispose

        public final void dispose()

        Disposes this font resource, disposing its content and making most methods and properties non-working

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • equals

        public final boolean equals(FontResourceBase other)

        Checks this instance with specified font resource on reference equality

        Parameters:
        other - Other inheritor of FontResourceBase abstract class
        Returns:
        True if are equal, false if are unequal
      • equals

        public final boolean equals(IHtmlResource other)

        Checks this instance with specified HTML resource on reference equality

        Parameters:
        other - Other inheritor of IHtmlResource interface
        Returns:
        True if are equal, false if are unequal
      • getFilenameWithExtension

        public final String getFilenameWithExtension()

        Returns correct filename of this font resource, which consists of name and extension. Theoretically can differ from the name.

        Specified by:
        getFilenameWithExtension in interface IHtmlResource
        Returns:
      • getName

        public final String getName()

        Returns name of this font resource. Usually doesn't contain filename extension and theoretically can differ from filename.

        Specified by:
        getName in interface IHtmlResource
        Returns:
      • getTextContent

        public final String getTextContent()

        Returns content of this font as base64-encoded string. This value is cached after first invoke.

        Specified by:
        getTextContent in interface IHtmlResource
      • getType

        public abstract FontType getType()

        In implementing type should return information about type of specific font resource as an instance of specific FontType type, which encapsulates all type-specific info

        Specified by:
        getType in interface IHtmlResource
        Returns:
      • isDisposed

        public final boolean isDisposed()

        Determines whether this font is disposed or not

        Specified by:
        isDisposed in interface IAuxDisposable
      • save

        public final void save(String fullPathToFile)

        Saves this font to the specified file

        Specified by:
        save in interface IHtmlResource
        Parameters:
        fullPathToFile - Full path to the file, which will be created or rewritten