You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Cornelis Hoeflake (JIRA)" <ji...@apache.org> on 2014/09/17 09:01:33 UTC

[jira] [Commented] (PDFBOX-2357) PDTrueTypeFont has no method to load font from stream

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

Cornelis Hoeflake commented on PDFBOX-2357:
-------------------------------------------

    The method:

    /**
     * Loads a TTF to be embedded into a document.
     *
     * @param doc The PDF document that will hold the embedded font.
     * @param file a ttf file.
     * @return a PDTrueTypeFont instance.
     * @throws IOException If there is an error loading the data.
     */
    public static PDTrueTypeFont loadTTF(PDDocument doc, InputStream is) throws IOException
    {
        return new PDTrueTypeFont(doc, is);
    }

> PDTrueTypeFont has no method to load font from stream
> -----------------------------------------------------
>
>                 Key: PDFBOX-2357
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2357
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Cornelis Hoeflake
>
> The PDTrueTypeFont had formely static method to load a font from a stream. Now that method is gone. As far as I can see without a reason. Probably removed by mistake.
> Could that method be restored?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)