Package org.apache.pdfbox.rendering.font

Examples of org.apache.pdfbox.rendering.font.Type1Glyph2D


            glyph2D = new TTFGlyph2D(ttfFont)// TTF is never null
        }
        else if (font instanceof PDType1Font)
        {
            PDType1Font pdType1Font = (PDType1Font)font;
            glyph2D = new Type1Glyph2D(pdType1Font); // T1 is never null
        }
        else if (font instanceof PDType1CFont)
        {
            PDType1CFont type1CFont = (PDType1CFont)font;
            if (type1CFont.getCFFType1Font() != null) // todo: could be null (need to incorporate fallback)
            {
                glyph2D = new Type1Glyph2D(type1CFont);
            }
        }
        else if (font instanceof PDType0Font)
        {
            PDType0Font type0Font = (PDType0Font) font;
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.rendering.font.Type1Glyph2D

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.