Package org.axsl.ps

Examples of org.axsl.ps.EncodingVector.decodeCharacter()


     * @return The PostScript name for {@code glyphIndex}.
     */
    public String getPostScriptName(final PsServer psServer, final char glyphIndex) {
        final EncodingVector macOrdering = psServer.getPredefinedEncoding(
                EncodingVector.Predefined.STANDARD_MACINTOSH_ORDERING);
        final int codePoint = macOrdering.decodeCharacter(glyphIndex);
        switch (this.postFormat) {
        case TTFTablePOST.PS_FORMAT_1:
            return macOrdering.mapCodePointToGlyphName(codePoint);
        case TTFTablePOST.PS_FORMAT_2:
            if (codePoint != Encoding.INVALID_UNICODE_CHAR) {
View Full Code Here


        for (int i = 0; i < qtyPairs; i++) {
            final char glyphIndex1 = (char) reader.readUnsignedByte();
            final char glyphIndex2 = (char) reader.readUnsignedByte();
            final int adj = reader.readShortLoHi();
            this.getKerning().addKerningEntry(
                    encoding.decodeCharacter(glyphIndex1),
                    encoding.decodeCharacter(glyphIndex2),
                    (short) adj);
        }
        this.getKerning().lock();
    }
View Full Code Here

            final char glyphIndex1 = (char) reader.readUnsignedByte();
            final char glyphIndex2 = (char) reader.readUnsignedByte();
            final int adj = reader.readShortLoHi();
            this.getKerning().addKerningEntry(
                    encoding.decodeCharacter(glyphIndex1),
                    encoding.decodeCharacter(glyphIndex2),
                    (short) adj);
        }
        this.getKerning().lock();
    }
View Full Code Here

        final short[] extentTable = new short[charSet.size()];
        this.dfMinWidth = this.getMaxWidth();
        for (int i = this.dfFirstChar; i <= this.dfLastChar; i++) {
            final short width = (short) reader.readUnsignedShortLoHi();
            final char encodedIndex = (char) i;
            final int codePoint = internalEncoding.decodeCharacter(
                    encodedIndex);
            final int charSetIndex = charSet.getIndex(codePoint);
            if (charSetIndex < 0
                    || charSetIndex >= extentTable.length) {
                continue;
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.