Examples of SinglePathFontLocator


Examples of org.bazu.jotex.fonts.SinglePathFontLocator

        // 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
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.