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] Commented: (HARMONY-4556) [classlib][awt] Font.createGlyphVector(FontRenderContext frc, int[] glyphCodes) is not implemented
Date Wed, 03 Oct 2007 13:45:50 GMT

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

Dmitriy Matveev commented on HARMONY-4556:
------------------------------------------

Reproducer:

import java.awt.Font;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.font.FontRenderContext;
import java.awt.font.GlyphVector;

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

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

        Frame f = new Frame(fontFamily) {
            public void paint(Graphics g) {
                Graphics2D g2d = (Graphics2D) g;
                FontRenderContext frc = new FontRenderContext(null, false, false);
                int[] indexes = {10,100,500,300,10000};
                GlyphVector gv = font.createGlyphVector(frc, indexes);
                g2d.setFont(font);
                g2d.drawGlyphVector(gv,100,100);
            }
        };

        f.setBounds(0, 0, 800, 600);
        f.setVisible(true);

        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent ev) {
                System.exit(0);
            }
        });
    }
}

> [classlib][awt] Font.createGlyphVector(FontRenderContext frc, int[] glyphCodes) is not
implemented
> --------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4556
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4556
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Dmitriy Matveev
>
> Method createGlyphVector(FontRenderContext frc, int[] glyphCodes) of class Font is not
implemented for current font library.

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