[jira] [Commented] (FOP-2993) With PDFBox 2.0.22: Failed to embed font / Illegal offSize value 0 in CFF font

2021-01-07 Thread Justus Piater (Jira)


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

Justus Piater commented on FOP-2993:


Since the fontbox jar is included in the repository, I understand that the 
intended way to ship fop is with these lib/ jars bundled. If this is correct, 
then it is an Arch packaging issue.

> 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}
> http://www.w3.org/1999/XSL/Format;>
>   
> 
>   
> 
>   
>   
> 
>   Text
> 
>   
> 
> {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  specifications because of 
> FOP-2591).



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


[jira] [Commented] (FOP-2993) With PDFBox 2.0.22: Failed to embed font / Illegal offSize value 0 in CFF font

2021-01-07 Thread Simon Steiner (Jira)


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

Simon Steiner commented on FOP-2993:


We support pdfbox 2.0.19, newer are not yet supported

> 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}
> http://www.w3.org/1999/XSL/Format;>
>   
> 
>   
> 
>   
>   
> 
>   Text
> 
>   
> 
> {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  specifications because of 
> FOP-2591).



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