[
https://issues.apache.org/jira/browse/FOP-2626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Agneta Walterscheidt updated FOP-2626:
--------------------------------------
Attachment: FopConfBuilder.patch
fop.xconf
classpath-resources1.patch
Sorry for the late response.
You are right, the patch does not compile under java 6.
I have attached a new patch classpath-resources1.patch (svn revision 1767990
which I checked out this morning). The new patch compiles under java 6. I
tested some scenarios and found that it is no problem to use
java.util.zip.ZipFile when when searching for fonts in jar files (most of the
jars are filtered out when asking the ClassLoader for the resources and
moreover finding the font files is much less work than reading them).
I have attached a second patch FopConfBuilder.patch where I added a new method
in org.apache.fop.apps.FopConfBuilder.FontsConfBuilder for easy test creation.
I have attached a small fop config file, too.
> [PATCH] Allow Fonts from the classpath
> --------------------------------------
>
> Key: FOP-2626
> URL: https://issues.apache.org/jira/browse/FOP-2626
> Project: FOP
> Issue Type: Improvement
> Components: font/unqualified
> Affects Versions: 2.1
> Reporter: Agneta Walterscheidt
> Priority: Minor
> Labels: patch
> Attachments: FopConfBuilder.patch, classpath-resources.patch,
> classpath-resources1.patch, fop.xconf
>
>
> [PATCH]
> I have implemented that classpath resources can be set as Font files and Font
> directories in FOP configuration files. This makes it easy to ship a default
> font configuration with bundled fonts. I have verified that all tests that
> ran successfully before still run successfully.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)