You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Dmitriy Matveev (JIRA)" <ji...@apache.org> on 2007/10/04 12:14:51 UTC
[jira] Updated: (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 ]
Dmitriy Matveev updated HARMONY-4562:
-------------------------------------
Patch Info: [Patch Available]
> [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
> 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.