Class DesignerFontManager


  • public class DesignerFontManager
    extends java.lang.Object
    Font manager to handle installed fonts for Designer and DesignViewer.
    Author:
    Christopher Mindus
    • Constructor Detail

      • DesignerFontManager

        public DesignerFontManager​(ModuleModel model,
                                   ITransactionSender sender)
        Constructor.
        Parameters:
        model - The Module model.
        sender - The transaction sender.
    • Method Detail

      • installFonts

        public boolean installFonts​(java.util.List<FontFiles> fontList,
                                    EnvProps env)
        Installs the font face as specified by the FontFiles instance for the Client Session.
        Parameters:
        fontList - The font list.
        env - The client side environment.
        Returns:
        true for success, false for failure.
      • installFont

        public boolean installFont​(java.lang.String fontFamily,
                                   EnvProps env)
        Installs the font families as specified by the font family.
        Parameters:
        fontFamily - The font family, comma separated string not accepted.
        Returns:
        true for success, false for failure.
      • setModule

        public void setModule​(ModuleModel model)
        Assigns a new module model.
        Parameters:
        model - The module model.