com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IFontsManager

  • All Known Implementing Classes:
    FontsManager


    public interface IFontsManager

    Manages fonts across the presentation.

    • Method Detail

      • getFonts

        IFontData[] getFonts()

        Returns the fonts used in the presentation

        Returns:
        An array of fonts
      • getEmbeddedFonts

        IFontData[] getEmbeddedFonts()

        Returns the fonts embedded in the presentation

      • removeEmbeddedFont

        void removeEmbeddedFont(IFontData fontData)

        Removes the embedded font

      • addEmbeddedFont

        void addEmbeddedFont(IFontData fontData,
                             int embedFontRule)

        Adds the embedded font.

        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

        void addEmbeddedFont(byte[] fontData,
                             int embedFontRule)

        Adds the embedded font

        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 adding 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

        void replaceFont(IFontData sourceFont,
                         IFontData destFont)

        Replace font in presentation

        Parameters:
        sourceFont - Source font
        destFont - Destination font
      • replaceFont

        void replaceFont(IFontSubstRule substRule)

        Replace font in presentation using information provided in IFontSubstRule

        Parameters:
        substRule - Font substitution info
      • replaceFont

        void replaceFont(IFontSubstRuleCollection substRules)

        Replace font in presentation using information provided in collection of IFontSubstRule

        Parameters:
        substRules - Font substitution info collection