View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Displaying Antialiased Text by Using Rendering Hints

    by , 03-07-2012 at 05:48 PM
    Rendering hints may affect the Java 2Dô text.

    Text drawing method that is the most important of all is given as following:
    Java Code:
    Graphics.drawString(String s, int x, int y);
    Text antialiasing is a method which is used so that to smooth the text edges on screen. Applications are enabled by the Java 2D API to specify that such method shall be used or not and which algorithm shall be used by using text rendering hint, to the graphics.

    At the edge ...