Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-3099

Embedding fonts in JAR no longer possible in 2.x

    XMLWordPrintableJSON

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:

      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

          Activity

            People

              Unassigned Unassigned
              xfyre24 Ilya Obshadko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: