You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Wolfgang Glas (JIRA)" <ji...@apache.org> on 2012/06/29 11:07:42 UTC

[jira] [Created] (PDFBOX-1349) Postscript table of truetype fonts are not correctly parsed.

Wolfgang Glas created PDFBOX-1349:
-------------------------------------

             Summary: Postscript table of truetype fonts are not correctly parsed.
                 Key: PDFBOX-1349
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1349
             Project: PDFBox
          Issue Type: Bug
          Components: FontBox
    Affects Versions: 1.7.0
         Environment: all
            Reporter: Wolfgang Glas
             Fix For: 1.8.0
         Attachments: pdfbox-1.7.0-ttf-post-table-fix.patch

The specification of the 'post' table contains a list of 158 predefined character names.

However, the current fontbox interprets name indices <258 in term of the MAcRomanEncoding, which is wrong.

Testcase and patch will be attached shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PDFBOX-1349) Postscript table of truetype fonts are not correctly parsed.

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler reassigned PDFBOX-1349:
------------------------------------------

    Assignee: Andreas Lehmkühler
    
> Postscript table of truetype fonts are not correctly parsed.
> ------------------------------------------------------------
>
>                 Key: PDFBOX-1349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.7.0
>         Environment: all
>            Reporter: Wolfgang Glas
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.0
>
>         Attachments: TestTTFParser.java, pdfbox-1.7.0-ttf-post-table-fix.patch
>
>
> The specification of the 'post' table contains a list of 158 predefined character names.
> However, the current fontbox interprets name indices <258 in term of the MAcRomanEncoding, which is wrong.
> Testcase and patch will be attached shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1349) Postscript tables of truetype fonts are not correctly parsed.

Posted by "Wolfgang Glas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wolfgang Glas updated PDFBOX-1349:
----------------------------------

    Description: 
The specification of the 'post' table contains a list of 258 predefined character names.

However, the current fontbox interprets name indices <258 in terms of MacRomanEncoding, which is wrong.

Testcase and patch will be attached shortly.

  was:
The specification of the 'post' table contains a list of 158 predefined character names.

However, the current fontbox interprets name indices <258 in term of the MAcRomanEncoding, which is wrong.

Testcase and patch will be attached shortly.

        Summary: Postscript tables of truetype fonts are not correctly parsed.  (was: Postscript table of truetype fonts are not correctly parsed.)
    
> Postscript tables of truetype fonts are not correctly parsed.
> -------------------------------------------------------------
>
>                 Key: PDFBOX-1349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.7.0
>         Environment: all
>            Reporter: Wolfgang Glas
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.0
>
>         Attachments: TestTTFParser.java, pdfbox-1.7.0-ttf-post-table-fix.patch
>
>
> The specification of the 'post' table contains a list of 258 predefined character names.
> However, the current fontbox interprets name indices <258 in terms of MacRomanEncoding, which is wrong.
> Testcase and patch will be attached shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1349) Postscript table of truetype fonts are not correctly parsed.

Posted by "Wolfgang Glas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wolfgang Glas updated PDFBOX-1349:
----------------------------------

    Attachment: pdfbox-1.7.0-ttf-post-table-fix.patch

Patch, which fixes post table parsing.
                
> Postscript table of truetype fonts are not correctly parsed.
> ------------------------------------------------------------
>
>                 Key: PDFBOX-1349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.7.0
>         Environment: all
>            Reporter: Wolfgang Glas
>             Fix For: 1.8.0
>
>         Attachments: pdfbox-1.7.0-ttf-post-table-fix.patch
>
>
> The specification of the 'post' table contains a list of 158 predefined character names.
> However, the current fontbox interprets name indices <258 in term of the MAcRomanEncoding, which is wrong.
> Testcase and patch will be attached shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (PDFBOX-1349) Postscript tables of truetype fonts are not correctly parsed.

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Resolution: Fixed

I added the patch in revision 1358739 and 1358740 as proposed with some slight modifications. I set both classes in org.apache.fontbox.encoding to deprecated as they are no longer needed.

Thanks for the contribution!
                
> Postscript tables of truetype fonts are not correctly parsed.
> -------------------------------------------------------------
>
>                 Key: PDFBOX-1349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.7.0
>         Environment: all
>            Reporter: Wolfgang Glas
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.0
>
>         Attachments: TestTTFParser.java, pdfbox-1.7.0-ttf-post-table-fix.patch
>
>
> The specification of the 'post' table contains a list of 258 predefined character names.
> However, the current fontbox interprets name indices <258 in terms of MacRomanEncoding, which is wrong.
> Testcase and patch will be attached shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1349) Postscript table of truetype fonts are not correctly parsed.

Posted by "Wolfgang Glas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wolfgang Glas updated PDFBOX-1349:
----------------------------------

    Attachment: TestTTFParser.java

A test case, which unfortunately has to live in the pdfbox project.
                
> Postscript table of truetype fonts are not correctly parsed.
> ------------------------------------------------------------
>
>                 Key: PDFBOX-1349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 1.7.0
>         Environment: all
>            Reporter: Wolfgang Glas
>             Fix For: 1.8.0
>
>         Attachments: TestTTFParser.java, pdfbox-1.7.0-ttf-post-table-fix.patch
>
>
> The specification of the 'post' table contains a list of 158 predefined character names.
> However, the current fontbox interprets name indices <258 in term of the MAcRomanEncoding, which is wrong.
> Testcase and patch will be attached shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira