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 2013/07/17 19:52:09 UTC

[jira] [Resolved] (PDFBOX-1657) glyph contours missing

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

Andreas Lehmkühler resolved PDFBOX-1657.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

You are right there are some missing contours but your patch may fix that but also produces multiple entries.

According to the specs the current glyph isn't valid if the current index equals the following one. I fixed that in revision 1504210.

Thanks for the pointer!
                
> glyph contours missing
> ----------------------
>
>                 Key: PDFBOX-1657
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1657
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.8.2
>         Environment: Windows
>            Reporter: Kurt Leistentritt
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> In class GlyphTable, method initData, contours are not set
> if offset of glyph is the same as offset of previous glyph:
>             // don't repeat glyphs
>             if (currentOffset == offsets[i])
>             {
>                 continue;
>             }
> Should be changed to:
>             // don't repeat glyphs
>             if (currentOffset == offsets[i])
>             {
>                 glyphs[i] = glyphs[i-1];
>                 continue;
>             }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira