You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2025/04/15 15:38:00 UTC

[jira] [Resolved] (PDFBOX-5987) Can't render some Type1C fonts.

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

Tilman Hausherr resolved PDFBOX-5987.
-------------------------------------
    Fix Version/s: 2.0.34
                   3.0.5 PDFBox
                   4.0.0
         Assignee: Tilman Hausherr
       Resolution: Fixed

Thanks for the feedback. Yeah it was a bit tricky for 3.0, even more in 2.0. Which also shows that the refactorings made sense :-)

> 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: 2.0.33, 3.0.4 PDFBox
>            Reporter: Daniel Persson
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.34, 3.0.5 PDFBox, 4.0.0
>
>         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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org