Examples of FSTrueTypeFont


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
Copyright © 2018 www.massapi.com. 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.