You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/10/12 15:15:50 UTC

[jira] Resolved: (HARMONY-4562) [classlib][awt] Antialliasing is not implemented on Linux

     [ https://issues.apache.org/jira/browse/HARMONY-4562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov resolved HARMONY-4562.
--------------------------------------

    Resolution: Fixed

> [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
>            Assignee: Alexei Zakharov
>         Attachments: LinuxAA.diff
>
>
> 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.