Package com.tinyline.tiny2d

Examples of com.tinyline.tiny2d.Tiny2D.drawChars()


            if (cbox.xmax - cbox.xmin + ONE * 2 >= stoneSize)
                fontSize -= HALF;
            else
                break;
        }
        t2d.drawChars(font, fontSize, text, 0, text.length,
                daAnchorX + wH - (cbox.xmax - cbox.xmin) / 2,
                // same baseline for any text
                daAnchorY + hH + fontSize * (font.ascent + font.descent) / font.unitsPerEm / 2,
                Tiny2D.TEXT_ANCHOR_START);
    }
View Full Code Here


            System.out.println("\t" + moveStatus);
            //#endif
            int X = daWidth(tile) / 2;
            t2d.strokeColor = TinyColor.NONE;
            t2d.fillColor = fgColor;
            t2d.drawChars(font, commentFontSize, text, 0, text.length, X, Y + commentFontAscent, Tiny2D.TEXT_ANCHOR_MIDDLE);
            Y += commentFontSize;
            commentLines--;
        }

        if (commentLines > 0) {
View Full Code Here

                    if (drawChars){
                        // Draw the current line
                        //t2d.matrix = new TinyMatrix();
                        //if (breakOff <= off || len == text.length)
                        //breakOff = len;
                        t2d.drawChars(font, commentFontSize, text, off,
                                /*breakOff*/len, X, Y + commentFontAscent, Tiny2D.TEXT_ANCHOR_START);
                        // Advance one line
                        if (off == 0)
                            X = ONE;
                        //off = breakOff + 1;
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.