Package org.jnode.awt.font

Examples of org.jnode.awt.font.TextRenderer.render()


     */
    public void drawText(Surface g, Shape clip, AffineTransform tx, CharSequence text, Font font, int x, int y,
                         Color color) {
        Font txFont = getTranslatedFont(font);
        final TextRenderer renderer = getProvider(txFont).getTextRenderer(txFont);
        renderer.render(g, clip, tx, text, x, y, color);
    }

    /**
     * @param point
     * @param extension
View Full Code Here


            @Override
            protected void paintComponent(Graphics g) {
                super.paintComponent(g);
                Graphics2DSurface gs = new Graphics2DSurface((Graphics2D) g);

                tr.render(gs, null, tf, "JNode", 100, 100, Color.BLACK);
            }
        });
        f.setSize(400, 400);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
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.