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 2017/04/06 16:58:41 UTC

[jira] [Comment Edited] (PDFBOX-3747) CmapSubtable#getCharCodes provides values in random order

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

Andreas Lehmkühler edited comment on PDFBOX-3747 at 4/6/17 4:58 PM:
--------------------------------------------------------------------

I got different orderings on linux and windows. The latter was the issue and ended in a more or less wrong toUnicode mapping (hyphen was mapped to unicode 0x2010 and not to 0x002d)

The mapping is sorted in ascending order now, so that pdfbox provides a reliable order.


was (Author: lehmi):
I got different orderings on linux and windows. The latter was the issue and ended in a more or less wrong toUnicode mapping (hyphen was mapped to unicode 0x2010 and not to 0x002d)

The mapping is sorted now, so that pdfbox provides a reliable order.

> CmapSubtable#getCharCodes provides values in random order
> ---------------------------------------------------------
>
>                 Key: PDFBOX-3747
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3747
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.5, 3.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 2.0.6, 3.0.0
>
>
> Some fonts may have an ambigious glyphId to character code mapping. CmapSubtable#getCharCodes provides all of them, but in a random order. We should sort the list to provide a consistent order.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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