[
https://issues.apache.org/jira/browse/FOP-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17000992#comment-17000992
]
James Bench commented on FOP-2627:
----------------------------------
This is still an issue in FOP 2.4
Example directory structure:
{code:java}
.
├── fonts
│ ├── FreeMono.ttf
│ ├── FreeSerifBold.ttf
│ ├── FreeSerifBoldItalic.ttf
│ └── FreeSerifItalic.ttf
└── fop.xconf
{code}
Example fop.xconf
{code:java}
<fop version="1.0">
<!-- Base URL for resolving relative URLs -->
<base>./</base>
<renderers>
<renderer mime="application/pdf">
<fonts>
<directory>fonts</directory>
</fonts>
</renderer>
</renderers>
</fop>
{code}
I get the error message:
WARN org.apache.fop.apps.FOUserAgent - The font directory fonts could not be
found.
This patch looks like it would resolve my problem.
> [PATCH] Allow relative paths to font files/directories
> ------------------------------------------------------
>
> Key: FOP-2627
> URL: https://issues.apache.org/jira/browse/FOP-2627
> Project: FOP
> Issue Type: Improvement
> Components: font/unqualified
> Affects Versions: 2.1
> Reporter: Agneta Walterscheidt
> Priority: Minor
> Labels: patch
> Attachments: relative-paths.patch
>
>
> [PATCH]
> I have implemented support for *relative* paths to Font files and Font
> directories in FOP configuration files. This makes it easier to ship a
> default font configuration with an application. I have verified that all
> tests that ran successfully before still run successfully.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)