harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4562) [classlib][awt] Antialliasing is not implemented on Linux
Date Tue, 16 Oct 2007 19:05:50 GMT

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

Mark Hindess commented on HARMONY-4562:
---------------------------------------

This commit has broken awt for me.  Linuxfont dlopen fails with undefined symbol errors -
newNullPointerException. 

I replaced all the references to newNullPointerException in this file (and a number of others)
in the following commit:

  r423405 | hindessm | 2006-07-19 09:51:27 +0100 (Wed, 19 Jul 2006) | 1 line

  Change awt natives to use exception functions from luni common library.

which was over a year ago!

Fixed in r585221.

> [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.


Mime
View raw message