[
https://issues.apache.org/jira/browse/FOP-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14572367#comment-14572367
]
Martin Wegner commented on FOP-2480:
------------------------------------
The problem is in file FontCache.java method addFont(EmbedFontInfo fontInfo,
InternalResourceResolver resourceResolver) line 334 "URI fontUri =
resourceResolver.resolveFromBase(fontInfo.getEmbedURI())".
A custom resource resolver does not help here?!?
> Since FOP 2.0 it is not possible to load embedded fonts from a JAR
> ------------------------------------------------------------------
>
> Key: FOP-2480
> URL: https://issues.apache.org/jira/browse/FOP-2480
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Martin Wegner
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)