You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Bob Swanson (JIRA)" <ji...@apache.org> on 2012/07/03 23:48:34 UTC

[jira] [Created] (PDFBOX-1355) Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0

Bob Swanson created PDFBOX-1355:
-----------------------------------

             Summary: Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0
                 Key: PDFBOX-1355
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1355
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 1.7.0
         Environment: MAC OS Tiger
            Reporter: Bob Swanson


I have been using a particular TrueType font with
many previous versions of PDFBox. It loaded and worked fine
up to version 1.6.0. Now at level 1.7.0, I get a
NullPointerException when attempting to load this
TTF file:


Exception: java.lang.NullPointerException
java.lang.NullPointerException
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:319)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:166)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)
	at test.<init>(test.java:23)
	at test.main(test.java:36)


My testcase (simply performing a loadTTF()) works with 1.6.0
of PDFBox. This font is certainly an oldie, but it does validate
using "Font Book" on my Mac. That program looks through a TrueType font,
checking all internal tables for correctness.

I have attached a copy of the .ttf file.


--
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-1355) Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0

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

Bob Swanson updated PDFBOX-1355:
--------------------------------

    Attachment: prinoorg.ttf

This font is old, but it loads and works correctly in PDFBox all the way up to 1.6.0. Failed to load in 1.7.0. Validates correctly on the Mac with Font Book.
                
> Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0
> --------------------------------------------------------------------
>
>                 Key: PDFBOX-1355
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1355
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.7.0
>         Environment: MAC OS Tiger
>            Reporter: Bob Swanson
>              Labels: font, truetype
>         Attachments: prinoorg.ttf
>
>
> I have been using a particular TrueType font with
> many previous versions of PDFBox. It loaded and worked fine
> up to version 1.6.0. Now at level 1.7.0, I get a
> NullPointerException when attempting to load this
> TTF file:
> Exception: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:319)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:166)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)
> 	at test.<init>(test.java:23)
> 	at test.main(test.java:36)
> My testcase (simply performing a loadTTF()) works with 1.6.0
> of PDFBox. This font is certainly an oldie, but it does validate
> using "Font Book" on my Mac. That program looks through a TrueType font,
> checking all internal tables for correctness.
> I have attached a copy of the .ttf file.

--
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-1355) Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0

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

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

       Resolution: Fixed
    Fix Version/s: 1.8.0
         Assignee: Andreas Lehmkühler
    
> Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0
> --------------------------------------------------------------------
>
>                 Key: PDFBOX-1355
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1355
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.7.0
>         Environment: MAC OS Tiger
>            Reporter: Bob Swanson
>            Assignee: Andreas Lehmkühler
>              Labels: font, truetype
>             Fix For: 1.8.0
>
>         Attachments: prinoorg.ttf
>
>
> I have been using a particular TrueType font with
> many previous versions of PDFBox. It loaded and worked fine
> up to version 1.6.0. Now at level 1.7.0, I get a
> NullPointerException when attempting to load this
> TTF file:
> Exception: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:319)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:166)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)
> 	at test.<init>(test.java:23)
> 	at test.main(test.java:36)
> My testcase (simply performing a loadTTF()) works with 1.6.0
> of PDFBox. This font is certainly an oldie, but it does validate
> using "Font Book" on my Mac. That program looks through a TrueType font,
> checking all internal tables for correctness.
> I have attached a copy of the .ttf file.

--
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] [Commented] (PDFBOX-1355) Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0

Posted by "Bob Swanson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426330#comment-13426330 ] 

Bob Swanson commented on PDFBOX-1355:
-------------------------------------

Fixed! Works fine, tested with MAC OSX.
                
> Truetype font loaded in 1.6.0 (and previous), does not load in 1.7.0
> --------------------------------------------------------------------
>
>                 Key: PDFBOX-1355
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1355
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.7.0
>         Environment: MAC OS Tiger
>            Reporter: Bob Swanson
>            Assignee: Andreas Lehmkühler
>              Labels: font, truetype
>             Fix For: 1.7.1
>
>         Attachments: prinoorg.ttf
>
>
> I have been using a particular TrueType font with
> many previous versions of PDFBox. It loaded and worked fine
> up to version 1.6.0. Now at level 1.7.0, I get a
> NullPointerException when attempting to load this
> TTF file:
> Exception: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadDescriptorDictionary(PDTrueTypeFont.java:319)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:166)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:142)
> 	at org.apache.pdfbox.pdmodel.font.PDTrueTypeFont.loadTTF(PDTrueTypeFont.java:129)
> 	at test.<init>(test.java:23)
> 	at test.main(test.java:36)
> My testcase (simply performing a loadTTF()) works with 1.6.0
> of PDFBox. This font is certainly an oldie, but it does validate
> using "Font Book" on my Mac. That program looks through a TrueType font,
> checking all internal tables for correctness.
> I have attached a copy of the .ttf file.

--
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