Package org.foray.font.format

Examples of org.foray.font.format.TTFFont


        final TTFFont[] ttfFonts = fontFile.getTTFFonts();
        if (ttfFonts == null) {
            return;
        }
        for (int i = 0; i < ttfFonts.length; i++) {
            final TTFFont ttfFont = ttfFonts[i];
            final ConfiguredFont configFile = new ConfiguredFont();
            final String fontName = ttfFont.getPostscriptName();
            configFile.setPostScriptName(fontName);
            configFile.setFamilyName(ttfFont.getFamilyName());
            configFile.setFontUrl(file.getAbsolutePath());
            configFile.setStyle(getStyle(fontName));
            configFile.setWeight(getWeight(fontName));
            this.fontFiles.add(configFile);
        }
View Full Code Here

TOP

Related Classes of org.foray.font.format.TTFFont

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.