FontManagerConfigurator (Apache FOP Core 2.11 API)
Date: 2025-04-24

org.apache.fop.fonts

## Class FontManagerConfigurator

- java.lang.Object
- - org.apache.fop.fonts.FontManagerConfigurator

-     public class FontManagerConfigurator
      extends Object

  Configurator of the FontManager

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FontManagerConfigurator(Configuration cfg, URI baseURI, URI fallbackURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver)` Main constructor

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `configure(FontManager fontManager, boolean strict)` Initializes font settings from the user configuration
    `static FontTriplet.Matcher` | `createFontsMatcher(Configuration cfg, boolean strict)` Creates a font triplet matcher from a configuration object.
    `static FontTriplet.Matcher` | `createFontsMatcher(List<String> fontFamilies, boolean strict)` Creates a font triplet matcher from a configuration object.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FontManagerConfigurator

          public FontManagerConfigurator(Configuration cfg,
                                         URI baseURI,
                                         URI fallbackURI,
                                         org.apache.xmlgraphics.io.ResourceResolver resourceResolver)

      Main constructor
      Parameters:
        `cfg` - the font manager configuration object
        `baseURI` - the URI against which to resolve relative URIs
        `fallbackURI` - the URI to use as a fallback if font-base is unspecified
        `resourceResolver` - the resource resolver

  - ### Method Detail

    - #### configure

          public void configure(FontManager fontManager,
                                boolean strict)
                         throws FOPException

      Initializes font settings from the user configuration
      Parameters:
        `fontManager` - a font manager
        `strict` - true if strict checking of the configuration is enabled
      Throws:
        `FOPException` - if an exception occurs while processing the configuration

    - #### createFontsMatcher

          public static FontTriplet.Matcher createFontsMatcher(Configuration cfg,
                                                               boolean strict)
                                                        throws FOPException

      Creates a font triplet matcher from a configuration object.
      Parameters:
        `cfg` - the configuration object
        `strict` - true for strict configuraton error handling
      Returns:
        the font matcher
      Throws:
        `FOPException` - if an error occurs while building the matcher

    - #### createFontsMatcher

          public static FontTriplet.Matcher createFontsMatcher(List<String> fontFamilies,
                                                               boolean strict)
                                                        throws FOPException

      Creates a font triplet matcher from a configuration object.
      Parameters:
        `fontFamilies` - the list of font families
        `strict` - true for strict configuraton error handling
      Returns:
        the font matcher
      Throws:
        `FOPException` - if an error occurs while building the matcher

Copyright © 2025 Apache Software Foundation. All rights reserved.