Examples of mapGlyphNameToCodePoint()


Examples of org.axsl.ps.GlyphList.mapGlyphNameToCodePoint()

     * @param glyphName The glyph name to be converted.
     * @return The Unicode code point that corresponds to glyphName.
     */
    private char getCodePointForGlyphName(final PsServer psServer, final String glyphName) {
        GlyphList gl = psServer.getPredefinedGlyphList(GlyphList.Predefined.AGL);
        char theChar = gl.mapGlyphNameToCodePoint(glyphName);
        if (theChar == Character.MAX_VALUE) {
            gl = psServer.getPredefinedGlyphList(GlyphList.Predefined.ZAPF_DINGBATS);
            theChar = gl.mapGlyphNameToCodePoint(glyphName);
        }
        return theChar;
View Full Code Here

Examples of org.axsl.ps.GlyphList.mapGlyphNameToCodePoint()

    private char getCodePointForGlyphName(final PsServer psServer, final String glyphName) {
        GlyphList gl = psServer.getPredefinedGlyphList(GlyphList.Predefined.AGL);
        char theChar = gl.mapGlyphNameToCodePoint(glyphName);
        if (theChar == Character.MAX_VALUE) {
            gl = psServer.getPredefinedGlyphList(GlyphList.Predefined.ZAPF_DINGBATS);
            theChar = gl.mapGlyphNameToCodePoint(glyphName);
        }
        return theChar;
    }

    /**
 
View Full Code Here

Examples of org.axsl.ps.GlyphList.mapGlyphNameToCodePoint()

        for (int i = 0; i < this.glyphNames.size(); i++) {
            final String glyphName = this.glyphNames.get(i);
            for (int j = 0; j < this.glyphListsToCheck.size(); j++) {
                final GlyphList glyphList = this.glyphListsToCheck.get(j);
                final char codePoint = glyphList.mapGlyphNameToCodePoint(
                        glyphName);
                if (codePoint != Character.MAX_VALUE) {
                    this.codePoints.set(i, codePoint);
                    final char glyphIndex = this.glyphIndexes.get(i);
                    this.codePointIndexes.set(i, glyphIndex);
View Full Code Here

Examples of org.axsl.ps.GlyphList.mapGlyphNameToCodePoint()

     */
    private void processCurrentLine(final String line, final int arrayIndex) throws PsException {
        this.characterSet.add(Character.MIN_VALUE);
        this.glyphNames.add(StringUtil.EMPTY_STRING);
        final GlyphList gl = GlyphListAGL.getInstance();
        final char theChar = gl.mapGlyphNameToCodePoint(line);
        if (theChar == Character.MAX_VALUE) {
            throw new PsException("Character not found in Adobe Glyph List, line "
                    + this.currentLineNumber + ": " + line);

        }
View Full Code Here

Examples of org.axsl.ps.GlyphList.mapGlyphNameToCodePoint()

        for (int i = 0; i < glyphLists.size(); i++) {
            final GlyphList list = glyphLists.get(i);
            if (list == null) {
                continue;
            }
            final char c = list.mapGlyphNameToCodePoint(glyphName);
            if (c != Encoding.INVALID_UNICODE_CHAR) {
                return c;
            }
        }
        return Encoding.INVALID_UNICODE_CHAR;
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.