Package com.adobe.dp.otf

Examples of com.adobe.dp.otf.FontInputStream


    Iterator nakedFonts = fonts.iterator();
    while (nakedFonts.hasNext()) {
      try {
        String name = (String) nakedFonts.next();
        FontInputStream fin = fontStreamForName(name);
        OpenTypeFont font = new OpenTypeFont(fin, true);
        if (!font.canEmbedForReading())
          continue;
        FontProperties key = new FontProperties(font.getFamilyName(), font.getWeight(), font.getStyle());
        fontMap.put(key, name);
View Full Code Here


          entry.weight = currentEntry.weight;
          SubsetterEntry subsetter = (SubsetterEntry) subsetters.get(entry);
          if (subsetter == null) {
            try {
              FontProperties prop = new FontProperties(entry.familyName, entry.weight, entry.style);
              FontInputStream stream = fontLocator.locateFont(prop);
              if (stream != null) {
                OpenTypeFont font = new OpenTypeFont(stream);
                if (font.canEmbedForReading() && font.canSubset()) {
                  subsetter = new SubsetterEntry();
                  subsetter.font = font;
View Full Code Here

TOP

Related Classes of com.adobe.dp.otf.FontInputStream

Copyright © 2018 www.massapicom. 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.