com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class FontsManager

  • java.lang.Object
    • com.aspose.slides.FontsManager
  • All Implemented Interfaces:
    IFontsManager


    public class FontsManager
    extends java.lang.Object
    implements IFontsManager

    Manages fonts across the presentation.

    • Method Detail

      • getFonts

        public final IFontData[] getFonts()

        Returns the fonts used in the presentation

        Specified by:
        getFonts in interface IFontsManager
        Returns:
        An array of fonts
      • addEmbeddedFont

        public final void addEmbeddedFont(IFontData fontData,
                                          int embedFontRule)

        Adds the embedded font

        Specified by:
        addEmbeddedFont in interface IFontsManager
        Throws:
        com.aspose.ms.System.ArgumentException - An ArgumentException can be thrown if font data is null or this font is already embedded


        Keep in mind when copying any fonts that most fonts are copyrighted. First locate the license of a font before hand and verify they can be freely transferred to another machine.

      • addEmbeddedFont

        public final void addEmbeddedFont(byte[] fontData,
                                          int embedFontRule)

        Adds the embedded font

        Specified by:
        addEmbeddedFont in interface IFontsManager
        Throws:
        com.aspose.ms.System.ArgumentException - An ArgumentException can be thrown if font data is null or this font is already embedded


        Keep in mind when copying any fonts that most fonts are copyrighted. First locate the license of a font before hand and verify they can be freely transferred to another machine.

      • replaceFont

        public final void replaceFont(IFontData sourceFont,
                                      IFontData destFont)

        Replace font in presentation

        Specified by:
        replaceFont in interface IFontsManager
        Parameters:
        sourceFont - Source font
        destFont - Destination font