Package org.xhtmlrenderer.pdf

Examples of org.xhtmlrenderer.pdf.ITextFSFont


        String normalizedFontFamily = normalizeFontFamily(fontFamily);

        String cacheKey = getHashName(normalizedFontFamily, weight, style);
        FontDescription result = (FontDescription)_fontCache.get(cacheKey);
        if (result != null) {
            return new ITextFSFont(result, size);
        }
       
        FontFamily family = (FontFamily)_fontFamilies.get(normalizedFontFamily);
        if (family != null) {
            result = family.match(convertWeightToInt(weight), style);
            if (result != null) {
                _fontCache.put(cacheKey, result);
                return new ITextFSFont(result, size);
            }
        }
       
        return null;
    }
View Full Code Here

TOP

Related Classes of org.xhtmlrenderer.pdf.ITextFSFont

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.