Examples of canEmbedForReading()


Examples of com.adobe.dp.otf.OpenTypeFont.canEmbedForReading()

    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);
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

Examples of com.adobe.dp.otf.OpenTypeFont.canEmbedForReading()

            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;
                  subsetters.put(entry, subsetter);
                  entry.subsetter = subsetter;
                } else {
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.