https://issues.apache.org/bugzilla/show_bug.cgi?id=51060

           Summary: font configuration: embed-url tag does not support
                    relative paths anymore
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: general
        AssignedTo: [email protected]
        ReportedBy: [email protected]


In fop.xconf it is possible to have font configurations like this:

<font-base>file:/my/font/path</font-base>

<font kerning="yes" embed-url="myfont.ttf"> ... </font>

This works perfectly in Fop 0.95 and earlier versions, but in Fop 1.0 it throws
an exception:

org.apache.fop.apps.FOPException: Failed to resolve font with embed-url
'myfont.ttf'
        at org.apache.fop.util.LogUtil.handleError(LogUtil.java:38)
        at
org.apache.fop.fonts.FontInfoConfigurator.getFontInfo(FontInfoConfigurator.java:212)
        at
org.apache.fop.fonts.FontInfoConfigurator.addFonts(FontInfoConfigurator.java:168)
        at
org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.java:100)
        at
org.apache.fop.render.PrintRendererConfigurator.buildFontList(PrintRendererConfigurator.java:106)

Notes:
- using absolute paths in the embed-url attribute still works.
- setting the font base attribute programmatically leads to the same problem.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to