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

Tilman Hausherr commented on PDFBOX-5143:
-----------------------------------------

The file [^evince-bug431088.pdf] looks different ("Ubuntu" no longer bold) and 
brings an exception. This is because positioning exactly at the end now brings 
an exception. The previous code didn't bring an exception because 
{{readDictData(CFFDataInput input, int dictSize)}} never read anything if 
{{dictSize}} was 0. So allow positioning at the end, or don't position if 
{{dictSize}} is 0.

> Refactor/Simplify CFF parsing
> -----------------------------
>
>                 Key: PDFBOX-5143
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5143
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>         Attachments: evince-bug431088.pdf
>
>
> The classes used for the parsing of CFF-based fonts have some room for 
> improvements w.r.t. the memory footprint, the complexity of the code and the 
> test coverage.



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

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

Reply via email to