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

Cornelis Hoeflake edited comment on PDFBOX-2357 at 9/17/14 7:02 AM:
--------------------------------------------------------------------

    The method:
{code:title=PDTrueTypeFont.java|borderStyle=solid}
    /**
     * 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);
    }
{code}


was (Author: c.hoeflake):
    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)

Reply via email to