Examples of CFFCIDFont


Examples of org.apache.fontbox.cff.CFFCIDFont

            isDamaged = fontIsDamaged;
        }
        else
        {
            // substitute
            CFFCIDFont cidSub = ExternalFonts.getCFFCIDFont(getBaseFont());
            if (cidSub != null)
            {
                cidFont = cidSub;
                t1Font = null;
            }
            else
            {
                COSDictionary cidSystemInfo = (COSDictionary)
                        dict.getDictionaryObject(COSName.CIDSYSTEMINFO);

                String registryOrdering = null;
                if (cidSystemInfo != null)
                {
                    String registry = cidSystemInfo.getNameAsString(COSName.REGISTRY);
                    String ordering = cidSystemInfo.getNameAsString(COSName.ORDERING);
                    if (registry != null && ordering != null)
                    {
                        registryOrdering = registry + "-" + ordering;
                    }
                }

                cidSub = ExternalFonts.getCFFCIDFontFallback(registryOrdering, getFontDescriptor());
                cidFont = cidSub;
                t1Font = null;

                if (cidSub.getName().equals("AdobeBlank"))
                {
                    // this error often indicates that the user needs to install the Adobe Reader
                    // Asian and Extended Language Pack
                    LOG.error("Missing CID-keyed font " + getBaseFont());
                }
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.