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:44:33 UTC
[jira] [Resolved] (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 resolved PDFBOX-3271.
----------------------------------------
Resolution: Fixed
After sorting the CID set the issue could be reproduced if CID 1 is used within a font.
My fix sorts the CID set so that the width array is optimal. Values aren't swallowed any more by choosing another start value for prev.
> 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