Package com.adobe.dp.otf

Examples of com.adobe.dp.otf.FontLocator


      paragraph3.add(a);

      // embed fonts
      // NB: on non-Windows platforms you need to supply your own
      // FontLocator implementation or place fonts in ~/.epubfonts
      FontLocator fontLocator = DefaultFontLocator.getInstance();
      // epub.useAdobeFontMangling();
      epub.cascadeStyles();
      epub.addFonts(style, fontLocator);

      // save EPUB to an OCF container
View Full Code Here


        // include fonts
        // embed fonts
        // NB: on non-Windows platforms you need to supply your own
        // FontLocator implementation or place fonts in ~/.epubfonts
        if (getFontsPath() != null && getFontsPath().trim().length() > 0) {
            FontLocator fontLocator = new SinglePathFontLocator(getFontsPath());
            getEpub().cascadeStyles();
            getEpub().addFonts(getStyleResource(), fontLocator);
        }
        OCFContainerWriter writer = new OCFContainerWriter(new FileOutputStream(getEpubFilename()));
        getEpub().serialize(writer);
View Full Code Here

TOP

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

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.