Package org.foray.font

Examples of org.foray.font.FSTrueTypeFont


            return null;
        }
        if (! (getFOrayFont() instanceof FSTrueTypeFont)) {
            return null;
        }
        final FSTrueTypeFont ttf = (FSTrueTypeFont) getFOrayFont();
        if (this.fontUse.subSetting()) {
            return getSubsetCharsUsed();
        }
        final Encoding encoding = this.fontUse.getEncoding();
        final int arraySize = ttf.getNumGlyphs();
        final char[] charArray = new char[arraySize];
        for (int i = 0; i < ttf.getNumGlyphs(); i++) {
            final int arrayItem = encoding.decodeCharacter((char) i);
            charArray[i] = (char) arrayItem;
        }
        return charArray;
    }
View Full Code Here

TOP

Related Classes of org.foray.font.FSTrueTypeFont

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.