Details
-
Bug
-
Status: Closed
-
Resolution: Duplicate
-
0.94
-
None
-
None
-
Operating System: Windows XP
Platform: PC
-
43571
Description
I was able to load the font metrics file from my classpath, where the font
metrics files reside inside a jar file.
The Base url is set:
fopFactory.setFontBaseURL(getClass().getResource("/com/foo/").toExternalForm());
During newFop() in the
org.apache.fop.render.PrintRendererConfigurator#getFontInfoFromConfiguration the
Source is created for the metrics file (the URL in the FOURIReolver is
jar:file:/c:/myjar.jar!/com/foo/verdana.xml). Then later on
org.apache.fop.fonts.LazyFont#load the Source remains null (the URL in the
FOURIReolver is now file:/c:/myjar.jar!/com/foo/verdana.xml (no jar: prefix
). Consequently the connection.connect() throws a FileNotFoundException
Attachments
Issue Links
- duplicates
-
FOP-1559 Handling of font URL pointing to a JAR entry don't work
- Closed