[ 
https://issues.apache.org/jira/browse/FOP-2993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Steiner resolved FOP-2993.
--------------------------------
    Resolution: Invalid

> 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)

Reply via email to