Class DefaultFontConfig.DefaultFontConfigParser

    • Constructor Detail

      • DefaultFontConfigParser

        public DefaultFontConfigParser()
    • Method Detail

      • parse

        public DefaultFontConfig parse​(Configuration cfg,
                                       boolean strict)
                                throws FOPException
        Parses the font configuration and return the configuration object.
        Parameters:
        cfg - the configuration data
        strict - whether or not to enforce strict validation
        Returns:
        the font configuration object
        Throws:
        FOPException - if an error occurs when creating the configuration object
      • parse

        public FontConfig parse​(Configuration cfg,
                                FontManager fontManager,
                                boolean strict,
                                org.apache.fop.events.EventProducer eventProducer)
                         throws FOPException
        Parse the font configuration and return an object containing all the necessary data.
        Specified by:
        parse in interface FontConfig.FontConfigParser
        Parameters:
        cfg - the configuration object
        fontManager - the font manager
        strict - whether or not to enforce strict validation
        eventProducer - the event producer for handling font events
        Returns:
        the configuration object
        Throws:
        FOPException - if an error occurs creating the font configuration object