Examples of TTFInput


Examples of org.jnode.awt.font.truetype.TTFInput

    public Glyph getGlyph(int i) throws IOException {
        if (glyphs[i] != null) {
            return glyphs[i];
        } else {
            final TTFInput in = getInput();
            in.pushPos();
            in.seek(offsets[i]);
            int numberOfContours = in.readShort();
            if (numberOfContours >= 0) {
                glyphs[i] = new SimpleGlyph(in, numberOfContours);
            } else {
                glyphs[i] = new CompositeGlyph(in, this);
            }
            in.popPos();
            return glyphs[i];
        }
    }
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.