Package org.pdfbox.encoding

Examples of org.pdfbox.encoding.AFMEncoding


            if( encoding == null )
            {
                FontMetric metric = getAFM();
                if( metric != null )
                {
                    fontEncoding = new AFMEncoding( metric );
                }
                if( fontEncoding == null )
                {
                    fontEncoding = manager.getStandardEncoding();
                }
View Full Code Here


        // read the afm
        AFMParser parser = new AFMParser(afm);
        parser.parse();
        metric = parser.getResult();
        setEncoding(new AFMEncoding(metric));

        // set the values
        setBaseFont(metric.getFontName());
        fd.setFontName(metric.getFontName());
        fd.setFontFamily(metric.getFamilyName());
View Full Code Here

                COSName baseFont = (COSName)font.getDictionaryObject( COSName.BASE_FONT );
                if( baseFont != null )
                {
                    if( afmResources.get( baseFont ) != null )
                    {
                        fontEncoding = new AFMEncoding( getAFM( baseFont ) );
                    }
                }
                if( fontEncoding == null )
                {
                    fontEncoding = manager.getStandardEncoding();
View Full Code Here

TOP

Related Classes of org.pdfbox.encoding.AFMEncoding

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.