harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Matveev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4562) [classlib][awt] Antialliasing is not implemented on Linux
Date Mon, 30 Jul 2007 08:50:53 GMT
[classlib][awt] Antialliasing is not implemented on Linux
---------------------------------------------------------

                 Key: HARMONY-4562
                 URL: https://issues.apache.org/jira/browse/HARMONY-4562
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Dmitriy Matveev


Test below shows that we have not antialliasing on Linux:

import java.awt.Font;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class AATest {
    private static final String fontFamily = "Arial";

    public static void main(String[] args) {
        final Font font = new Font(fontFamily, Font.PLAIN, 300);

        Frame f = new Frame(fontFamily) {
            public void paint(Graphics g) {
                Graphics2D g2d = (Graphics2D) g;
                g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                      RenderingHints.VALUE_ANTIALIAS_ON);
                g2d.setFont(font);
                g2d.drawString("Test", 10, 550);
            }
        };
        f.setBounds(0, 0, 800, 600);
        f.setVisible(true);
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent ev) {
                System.exit(0);
            }
        });
    }
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message