Package com.sun.pdfview.font

Examples of com.sun.pdfview.font.PDFGlyph


        AffineTransform at = new AffineTransform();

        List l = font.getGlyphs(text);

        for (Iterator i = l.iterator(); i.hasNext();) {
            PDFGlyph glyph = (PDFGlyph) i.next();

            at.setTransform(cur);
            at.concatenate(scale);

            Point2D advance = glyph.addCommands(cmds, at, tm);

            double advanceX = (advance.getX() * fsize) + tc;
            if (glyph.getChar() == ' ') {
                advanceX += tw;
            }
            advanceX *= th;

            cur.translate(advanceX, advance.getY());
View Full Code Here


        AffineTransform at = new AffineTransform();

        List<PDFGlyph> l = this.font.getGlyphs(text);

        for (Iterator<PDFGlyph> i = l.iterator(); i.hasNext();) {
            PDFGlyph glyph = i.next();

            at.setTransform(this.cur);
            at.concatenate(scale);

            Point2D advance = glyph.addCommands(cmds, at, this.tm);

            double advanceX = (advance.getX() * this.fsize) + this.tc;
            if (glyph.getChar() == ' ') {
                advanceX += this.tw;
            }
            advanceX *= this.th;

            this.cur.translate(advanceX, advance.getY());
View Full Code Here

TOP

Related Classes of com.sun.pdfview.font.PDFGlyph

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.