Package org.apache.fop.fonts
Class FontManagerConfigurator
java.lang.Object
org.apache.fop.fonts.FontManagerConfigurator
Configurator of the FontManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final URI
private final Configuration
private final URI
private static org.apache.commons.logging.Log
logger instanceprivate final org.apache.xmlgraphics.io.ResourceResolver
-
Constructor Summary
ConstructorsConstructorDescriptionFontManagerConfigurator
(Configuration cfg, URI baseURI, URI fallbackURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(FontManager fontManager, boolean strict) Initializes font settings from the user configurationstatic FontTriplet.Matcher
createFontsMatcher
(List<String> fontFamilies, boolean strict) Creates a font triplet matcher from a configuration object.static FontTriplet.Matcher
createFontsMatcher
(Configuration cfg, boolean strict) Creates a font triplet matcher from a configuration object.
-
Field Details
-
log
private static org.apache.commons.logging.Log loglogger instance -
cfg
-
baseURI
-
fallbackURI
-
resourceResolver
private final org.apache.xmlgraphics.io.ResourceResolver resourceResolver
-
-
Constructor Details
-
FontManagerConfigurator
public FontManagerConfigurator(Configuration cfg, URI baseURI, URI fallbackURI, org.apache.xmlgraphics.io.ResourceResolver resourceResolver) Main constructor- Parameters:
cfg
- the font manager configuration objectbaseURI
- the URI against which to resolve relative URIsfallbackURI
- the URI to use as a fallback if font-base is unspecifiedresourceResolver
- the resource resolver
-
-
Method Details
-
configure
Initializes font settings from the user configuration- Parameters:
fontManager
- a font managerstrict
- 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 objectstrict
- 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 familiesstrict
- true for strict configuraton error handling- Returns:
- the font matcher
- Throws:
FOPException
- if an error occurs while building the matcher
-