Examples of GlyphSubstitutionTableReader


Examples of com.itextpdf.text.pdf.fonts.otf.GlyphSubstitutionTableReader

                char c = (char) charCode.intValue();
                int glyphCode = cmap31.get(charCode)[0];
                glyphToCharacterMap.put(glyphCode, c);
            }
       
            GlyphSubstitutionTableReader gsubReader = new GlyphSubstitutionTableReader(
                fileName, tables.get("GSUB")[0], glyphToCharacterMap, glyphWidthsByIndex);
           
            try {
              gsubReader.read();
              supportedLanguage = gsubReader.getSupportedLanguage();
             
              if (SUPPORTED_LANGUAGES_FOR_OTF.contains(supportedLanguage)) {
                glyphSubstitutionMap = gsubReader.getGlyphSubstitutionMap();
                    /*if (false) {
                      StringBuilder  sb = new StringBuilder(50);
                       
                        for (int glyphCode : glyphToCharacterMap.keySet()) {
                          sb.append(glyphCode).append("=>").append(glyphToCharacterMap.get(glyphCode)).append("\n");
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.