Package org.foray.font

Examples of org.foray.font.FSType1Font


        if (getFOrayFont() instanceof FSTrueTypeFont) {
            return " /Length1 "
                    + getPDFFontFileStreamSize();
        }
        if (getFOrayFont() instanceof FSType1Font) {
            final FSType1Font type1Font = (FSType1Font) getFOrayFont();
            final Type1File type1File = type1Font.getType1File();
            return " /Length1 " + type1File.getLength1()
                    + " /Length2 " + type1File.getLength2()
                    + " /Length3 " + type1File.getLength3();
        }
        return null;
View Full Code Here


    public byte[] getContentsPostScriptHex() {
        final Font font = this.getFontUse().getFont();
        if (! (font instanceof FSType1Font)) {
            return null;
        }
        final FSType1Font type1Font = (FSType1Font) font;
        final Type1File pfb = type1Font.getType1File();
        try {
            return pfb.getByteArray(PsFilterType.ASCII_HEX);
        } catch (final IOException e) {
            this.getLogger().fatal("Failed to get contents for "
                    + font.getPostscriptName() + ": " + e.getMessage());
View Full Code Here

TOP

Related Classes of org.foray.font.FSType1Font

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.