Examples of decodeSubsetIndex()


Examples of org.foray.font.Subset.decodeSubsetIndex()

    private char[] getSubsetCharsUsed() {
        final Subset subset = this.fontUse.getSubset();
        final Encoding encoding = this.fontUse.getEncoding();
        final char[] charArray = new char[subset.numGlyphsUsed()];
        for (int i = 0; i < subset.numGlyphsUsed(); i++) {
            final int originalGlyphIndex = subset.decodeSubsetIndex(i);
            final int codePoint = encoding.decodeCharacter(
                    (char) originalGlyphIndex);
            charArray[i] = (char) codePoint;
        }
        return charArray;
View Full Code Here

Examples of org.foray.font.Subset.decodeSubsetIndex()

        final Subset subset = this.fontUse.getSubset();
        final short[] originalWidths = this.fontUse.getFreeStandingFont()
                .getWidths();
        final short[] tmpWidth = new short[subset.numGlyphsUsed()];
        for (int i = 0; i < subset.numGlyphsUsed(); i++) {
            final int originalIndex = subset.decodeSubsetIndex(i);
            tmpWidth[i] = originalWidths[originalIndex];
        }
        return tmpWidth;
    }
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.