You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2016/03/13 11:37:33 UTC

[jira] [Updated] (PDFBOX-3271) Incomplete widths array for CID-fonts

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

Andreas Lehmkühler updated PDFBOX-3271:
---------------------------------------
    Attachment: TTF_good.pdf
                TTF_bad.pdf

Sample pdf before and after my fix

> Incomplete widths array for CID-fonts
> -------------------------------------
>
>                 Key: PDFBOX-3271
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3271
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 2.0.0
>
>         Attachments: TTF_bad.pdf, TTF_good.pdf
>
>
> In my day job I've migrated a project to PDFBox 2.0.0 and found an issue with CID-fonts. The created width array is incomplete in some non deterministic constellations, so that the default width is used for the missing CIDs. In my case spaces had a doubled width which lead to a false rendering.
> Furthermore the CIDs aren't sorted so that the resulting width array might not be optimal



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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