Package org.fontbox.afm

Examples of org.fontbox.afm.CharMetric


    {
        metric = fontInfo;
        Iterator characters = metric.getCharMetrics().iterator();
        while( characters.hasNext() )
        {
            CharMetric nextMetric = (CharMetric)characters.next();
            addCharacterEncoding( nextMetric.getCharacterCode(), COSName.getPDFName( nextMetric.getName() ) );
        }
    }
View Full Code Here


        List widths = new ArrayList(maxWidths);
        Integer zero = new Integer(0);
        Iterator iter = listmetric.iterator();
        while (iter.hasNext())
        {
            CharMetric m = (CharMetric) iter.next();
            int n = m.getCharacterCode();
            if (n > 0)
            {
                firstchar = Math.min(firstchar, n);
                lastchar = Math.max(lastchar, n);
                if (m.getWx() > 0)
                {
                    float width = m.getWx();
                    widths.add(new Float(width));
                }
                else
                {
                    widths.add(zero);
View Full Code Here

TOP

Related Classes of org.fontbox.afm.CharMetric

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.