You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Hamed Iravanchi (Created) (JIRA)" <ji...@apache.org> on 2012/04/15 08:25:38 UTC

[jira] [Created] (PDFBOX-1287) Glyph codes should be used to render PDF image for all true type fonts

Glyph codes should be used to render PDF image for all true type fonts
----------------------------------------------------------------------

                 Key: PDFBOX-1287
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1287
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.7.0
         Environment: All
            Reporter: Hamed Iravanchi




--
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-1287) Glyph codes should be used to render PDF image for all true type fonts

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

Andreas Lehmkühler commented on PDFBOX-1287:
--------------------------------------------

We can't include GPLed code, it may be possible to use LGPLed libs under special circumstances . But in this special case it isn't necessary. Fontbox should provide everything you're looking for. The TTFParser class [1] should do the trick.

[1] http://svn.apache.org/repos/asf/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/ttf/TTFParser.java

                
> Glyph codes should be used to render PDF image for all true type fonts
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-1287
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1287
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: All
>            Reporter: Hamed Iravanchi
>         Attachments: TTFRenderUsingGlyphs.patch
>
>


--
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-1287) Glyph codes should be used to render PDF image for all true type fonts

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

Hamed Iravanchi commented on PDFBOX-1287:
-----------------------------------------

I will try to see if I can make this work with fontbox, and then post another patch.
                
> Glyph codes should be used to render PDF image for all true type fonts
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-1287
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1287
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: All
>            Reporter: Hamed Iravanchi
>         Attachments: TTFRenderUsingGlyphs.patch
>
>


--
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-1287) Glyph codes should be used to render PDF image for all true type fonts

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

Hamed Iravanchi commented on PDFBOX-1287:
-----------------------------------------

I've done some efforts to resolve this issue, and now it works for me for all PDF files with True Type fonts. I'm attaching a patch that contains my changes.
Note: I'm not sure if the patch is useful for the PDFBox project, since it contains code from JPedal LGPL source code, used to read CMAP from TTF files, downloaded from: http://www.jpedal.org. License information is present in the file headers.
                
> Glyph codes should be used to render PDF image for all true type fonts
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-1287
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1287
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: All
>            Reporter: Hamed Iravanchi
>


--
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-1287) Glyph codes should be used to render PDF image for all true type fonts

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

Mehdi Houshmand commented on PDFBOX-1287:
-----------------------------------------

Hi Hamed,

You can also look at FOPs truetype parser which is under the Apache license so can be plundered with impunity. It doesn't read any of the glyph drawing commands it might be used to isolate glyph data (see TTFFile and TTFSubSetFile - http://svn.eu.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fonts/truetype/.)

Mehdi
                
> Glyph codes should be used to render PDF image for all true type fonts
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-1287
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1287
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: All
>            Reporter: Hamed Iravanchi
>         Attachments: TTFRenderUsingGlyphs.patch
>
>


--
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-1287) Glyph codes should be used to render PDF image for all true type fonts

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

Hamed Iravanchi updated PDFBOX-1287:
------------------------------------

    Attachment: TTFRenderUsingGlyphs.patch

Patch contains code that is not created by me (from JPedal open source project, licensed under LGPL).
                
> Glyph codes should be used to render PDF image for all true type fonts
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-1287
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1287
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>         Environment: All
>            Reporter: Hamed Iravanchi
>         Attachments: TTFRenderUsingGlyphs.patch
>
>


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