Details
-
Wish
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
Prior to upgrading to version 2, I've been successfully using 1.1 with font files embedded directly in JAR.
After upgrade, this doesn't seem possible any longer, because the JAR resource base is an opaque URI, and URI resolution for fonts embedded in JAR files does not work.
For example:
- font file is stored as fonts/myfont.ttf
- JAR resource base looks like jar:file:/path/to/application.jar!/ (opaque URI!)
Calling URI.resolve() on base returns a relative font path (as per spec, because the base is opaque), and then FOP fails with the error "URI is not absolute".
Is there any way to overcome this problem other than offloading fonts outside the JAR? This was working before just fine.
Attachments
Issue Links
- duplicates
-
FOP-2861 [PATCH] Allow resource loading from jar: URI
- Resolved