Package org.axsl.ps

Examples of org.axsl.ps.Cmap04.addEntry()


        final String encodingName = "internal-"
                + this.ttfFont().getPostscriptName();
        final Cmap04 cmap04 = psServer.makeCmap04(encodingName, segCountX2 / 2);
        for (int i = 0; i < startCount.length; i++) {
            if (rangeOffset[i] == 0) {
                cmap04.addEntry(startCount[i],
                        endCount[i],
                        (char) (startCount[i] + deltas[i]));
            } else {
                final char[] computedIndexes = new char[endCount[i]
                        - startCount[i] + 1];
View Full Code Here


                    final char glyphIndex =
                            (char) ((getReader().readUnsignedShort()
                            + deltas[i]) & Character.MAX_VALUE);
                    computedIndexes[j - startCount[i]] = glyphIndex;
                }
                cmap04.addEntry(startCount[i],
                        endCount[i], computedIndexes);
            }
            getLogger().debug(i + ": " + startCount[i] + " - "
                    + endCount[i]);
        }
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.