Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.0
-
None
-
None
Description
In FOP 1.1 it was possible to load embedded fonts (relative path in the fop.xconf) from a JAR by using a custom URIResolver and setting it (fopFactory.setURIResolver(fileResolver)) before loading the fop.xconf. The custom URIResolver was used while parsing the fop.xconf and resolving relative paths.
FOP 2.0 does not use the given resolver. It uses resolveFromBase() from the InternalResourceResolver. The method resolveFromBase() calls resolve() from the base URI. Because it is impossible to overwrite URI or InternalResourceResolver there is no chance to load embedded fonts (relative path in the fop.xconf) from a JAR by using a custom URIResolver.