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

Daniel Persson commented on PDFBOX-5987:
----------------------------------------

I've now ran the fix against all the issues reported to me. I also ran our 
normal test batches without finding any issues.

Sadly I could not cherry-pick your fix into the 3.0 branch.

------------------------------------

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) 
on project fontbox: Compilation failure
[ERROR] 
/home/danielp/github/pdfbox/fontbox/src/main/java/org/apache/fontbox/cff/Type2CharString.java:[90,53]
 cannot find symbol
[ERROR]   symbol:   variable DIV
[ERROR]   location: class org.apache.fontbox.cff.CharStringCommand

------------------------------------

So I ran the tests against trunk. But I would approve this fix for now.

> Can't render some Type1C fonts.
> -------------------------------
>
>                 Key: PDFBOX-5987
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5987
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox, Rendering
>    Affects Versions: 3.0.4 PDFBox
>            Reporter: Daniel Persson
>            Priority: Minor
>         Attachments: PDFBOX-5987.cff, PDFBOX-5987_reduced.pdf, 
> font-issue.pdf, screenshot-1.png
>
>
> This PDF seems to have a font rendering issue in PDFBox.
>  
> I've used both Poppler and Chrome to view the PDF, and it renders correctly. 
> Stepping through the code on the first character, I see that we have a 
> rendering list with commands that end in
>  -40 41 DIV -41 21 DIV CLOSEPATH ENDCHAR
>  
> This is not correct if you look at the byte sequence that ends in
> 12 98 -89 12 12 -117 8 14
>  
> Could be interpreted as
> -127 -41 28 -127 -127 0 RRCURVETO ENDCHAR
>  
> So perhaps there is an off-by-one error somewhere or something?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to