Package org.apache.fontbox.ttf

Examples of org.apache.fontbox.ttf.TTFParser


            throws IOException, SAXException, TikaException {
        TikaInputStream tis = TikaInputStream.cast(stream);
       
        // Ask FontBox to parse the file for us
        TrueTypeFont font;
        TTFParser parser = new TTFParser();
        if (tis != null && tis.hasFile()) {
            font = parser.parseTTF(tis.getFile());
        } else {
            font = parser.parseTTF(stream);
        }

        // Report the details of the font
        metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());
        metadata.set(TikaCoreProperties.CREATED,
View Full Code Here

TOP

Related Classes of org.apache.fontbox.ttf.TTFParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.