Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4146121

Font("serif",Font.ITALIC,12) not appearing italic on winNT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.2.0
    • client-libs
    • 2d
    • x86
    • solaris_2.6

      Font("serif",Font.ITALIC,32) is not appearing italic on winNT. To reproduce compile & run this source code :

      import java.awt.*;

      public class drawStr extends Canvas {

          public drawStr() {
              setBackground(Color.white);
          }

          public void paint(Graphics g) {
              g.setFont(new Font("serif", Font.ITALIC, 32));
              g.drawString(g.getFont().getName(), 100, 100);
          }

          public static void main(String s[]) {
              Frame f = new Frame("Java 2D Demo - drawStr");
              f.add("Center", new drawStr());
              f.pack();
              f.setSize(new Dimension(400,300));
              f.show();
          }
      }


      Also a problem on win95.
      brian.lichtenwalter@Eng 1998-06-05

            duke J. Duke
            blichtensunw Brian Lichtenwalter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: