xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Steiner (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (FOP-2993) With PDFBox 2.0.22: Failed to embed font / Illegal offSize value 0 in CFF font
Date Thu, 07 Jan 2021 15:30:00 GMT

    [ https://issues.apache.org/jira/browse/FOP-2993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260576#comment-17260576
] 

Simon Steiner edited comment on FOP-2993 at 1/7/21, 3:29 PM:
-------------------------------------------------------------

Check the lib dir in fop or the pom.xml for the supported fontbox/pdfbox version

 

For example fontbox version:

[http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-2_5/fop/lib/]


was (Author: ssteiner1):
Check the lib dir in fop or the pom.xml for the supported pdfbox version

 

For example fontbox version:

http://svn.apache.org/viewvc/xmlgraphics/fop/branches/fop-2_5/fop/lib/

> With PDFBox 2.0.22: Failed to embed font / Illegal offSize value 0 in CFF font
> ------------------------------------------------------------------------------
>
>                 Key: FOP-2993
>                 URL: https://issues.apache.org/jira/browse/FOP-2993
>             Project: FOP
>          Issue Type: Bug
>          Components: font/opentype
>    Affects Versions: 2.5
>         Environment: Arch Linux
>            Reporter: Justus Piater
>            Priority: Major
>         Attachments: exception-backtrace.txt, fop.xconf
>
>
> This bug did not show with PDFBox 2.0.21 and appeared with PDFBox 2.0.22 so it may actually
be a bug in PDFBox (or with this font). However, it may be related to [PDFBOX-5033|https://issues.apache.org/jira/browse/PDFBOX-5033].
Moreover, I have no use for PDFBox besides FOP and don't know how to test the fontbox jar
without FOP.
> To trigger this bug, run fop on this this .fo: 
> {code:xml}
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>   <fo:layout-master-set>
>     <fo:simple-page-master master-name="one">
>       <fo:region-body />
>     </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="one">
>     <fo:flow flow-name="xsl-region-body">
>       <fo:block font-family="FreeMono">Text</fo:block>
>     </fo:flow>
>   </fo:page-sequence>
> </fo:root>
> {code}
>  This causes the following exception; the full exception backtrace is attached:
> {{Jan 07, 2021 11:44:37 AM org.apache.fop.apps.FOUserAgent processEvent}}
>  {{INFO: Rendered page #1.}}
>  {{Jan 07, 2021 11:44:37 AM org.apache.fop.pdf.PDFFactory makeFontFile}}
>  {{SEVERE: Failed to embed font \[org.apache.fop.fonts.LazyFont@5d25e6bb\{FreeMono}\{metrics-url=null,embed-url=/usr/share/fonts/gnu-free/FreeMono.otf,kerning=true,advanced=true}]
FreeMono}}
>  {{java.io.IOException: Illegal (< 1 or > 4) offSize value 0 in CFF font at position
42277}}
>  {{at org.apache.fontbox.cff.CFFDataInput.readOffSize(CFFDataInput.java:85)}}
> This bug triggers with all GNU Free fonts, but not with any of the other OTF fonts I
tried.
> I also attach my fop.xconf (with explicit <font> specifications because of FOP-2591).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message