Package com.sun.pdfview.font.ttf

Examples of com.sun.pdfview.font.ttf.HmtxTable


        } else {
            gp = new GeneralPath ();
        }

        // calculate the advance
        HmtxTable hmtx = (HmtxTable) this.font.getTable ("hmtx");
        float advance = hmtx.getAdvance (glyphId) / this.unitsPerEm;

        // scale the glyph to match the desired advance
        float widthfactor = width / advance;

        // the base transform scales the glyph to 1x1
View Full Code Here

TOP

Related Classes of com.sun.pdfview.font.ttf.HmtxTable

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.