Attempting to use the patched version published by Jason
http://dev.plutext.org/svn/docx4j/trunk/docx4j/m2/docx4j/fop-patched/0.95.756434/
However, now the error is just delayed. Instead of happening when
executing FontInfoFinder.find, I instead get the same basic error later
when FOP tries to initialize the page layout[1]. Also, I found it
interesting that FontInfoFinder.find returns my a EmbedFontInfos array
with only one element when I know it has 4 font definitons (and logging
from TTFFile.checkTTC shows all 4).
[1]
java.lang.IllegalArgumentException: For TrueType collection you must
specify which font to select (-ttcname)
at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:480)
at
org.apache.fop.fonts.truetype.TTFFontLoader.read(TTFFontLoader.java:98)
at
org.apache.fop.fonts.truetype.TTFFontLoader.read(TTFFontLoader.java:84)
at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:190)
at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:139)
at org.apache.fop.fonts.LazyFont.load(LazyFont.java:134)
at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:241)
at org.apache.fop.fonts.Font.getAscender(Font.java:106)
at
org.apache.fop.layoutmgr.BlockLayoutManager.initialize(BlockLayoutManager.java:89)
at
org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:119)
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:75)
at
org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:144)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:553)
at
org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:136)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:303)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:265)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
at org.apache.fop.fo.FOTreeBuilder
$MainFOHandler.endElement(FOTreeBuilder.java:348)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
at
com.icl.saxon.output.ContentHandlerProxy.endElement(ContentHandlerProxy.java:137)
On Wed, 2009-04-08 at 19:24 +0200, Andreas Delmelle wrote:
> On 08 Apr 2009, at 19:00, Steve Ebersole wrote:
>
> > <snip />
> >
> > Interestingly, the code Jason showed me has FontInfoFinder.find
> > returning an array of EmbedFontInfos, whereas the version of FOP I am
> > using 0.95 returns just a single EmbedFontInfo. Perhaps this is a
> > change in trunk to handle just this font-collection issue?
>
> Yep, a patch submitted by Jason himself, which was only committed to
> Trunk at the time:
> http://svn.eu.apache.org/viewvc?view=rev&revision=644208
>
>
> Regards
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
--
Steve Ebersole <[email protected]>
Hibernate.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]