com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class FontFileDefinition

    • Constructor Detail

      • FontFileDefinition

        public FontFileDefinition(StreamSource streamSource)

        Creates a file definition using file content only.

        Parameters:
        streamSource - Font stream source.
      • FontFileDefinition

        public FontFileDefinition(String fileExtension,
                                  StreamSource streamSource)

        Creates a file definition using file content only.

        Parameters:
        fileExtension - Font file extension.
        streamSource - Font stream source.
      • FontFileDefinition

        public FontFileDefinition(String fileExtension,
                                  StreamSource streamSource,
                                  long offset)

        Creates a file definition using file content only.

        Parameters:
        fileExtension - Font file extension.
        streamSource - Font stream source.
        offset - Offset to font data in stream source.
      • FontFileDefinition

        public FontFileDefinition(File fontFile)

        Creates a file definition using font file (represented by File) and file content.

        Parameters:
        fontFile - File object.
    • Method Detail

      • getFileName

        public String getFileName()

        Gets File name.

        Returns:
        File name.
      • getFileExtension

        public String getFileExtension()

        Gets File extension.

        Returns:
        File extension.
      • getStreamSource

        public StreamSource getStreamSource()

        Gets the stream source.

        Returns:
        The stream source.
      • getOffset

        public long getOffset()

        Gets offset inside the stream.

        Returns:
        Offset inside the stream.