Package com.tinyline.tiny2d

Examples of com.tinyline.tiny2d.TinyUtils


        font.unitsPerEm = 2048;
        font.ascent = 1854;
        font.descent = -434;
        font.baseline = 0;

        TinyUtils parsers = new TinyUtils();
        /* Read glyph data and fill the glyph table for this TinyFont. */
        for (int i = 0; i < GLYPH_PATHDATA.length; i++) {
            /* Create one glyph. */
            TinyGlyph glyph = new TinyGlyph();
            glyph.unicode = GLYPH_UNICODE[i];
            glyph.horizAdvX = GLYPH_WIDTH[i];
            try {
                glyph.path = parsers.parsePath(GLYPH_PATHDATA[i], GLYPH_PATHDATA[i].length, true);
            } catch (Exception e) {
            }
            font.glyphs.put(new TinyNumber(glyph.unicode), glyph);
        }
        /* Add the font to the font table. */
 
View Full Code Here

TOP

Related Classes of com.tinyline.tiny2d.TinyUtils

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.