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

RFE: Add Arabic OpenType tables to Java's Lucida fonts

XMLWordPrintable

    • 2d
    • Fix Understood
    • generic
    • generic

      Name: jbT81659 Date: 02/05/2002

      Locale: ar_SA, ar_EG, iw_IL, en_US
      Build: jdk1.4.0-b92

      Arabic diacritics are superimposed on arabic glyphs. This behavior is independent
      of Platform and locale. To reproduce bug:
      1- Compile and run the following code (jarabic_tashkeel.java)
      2- Note how arabic diacritics are super imposed on arabic glyphs

      ------------Code-----------------
      /* Copyright (c) Sun Microsystems 1998

      $Header: /home-bazelet/sun/src/javaLab/JDK1.3.1/java/javaf/jarab_tashkeel.java,v 1.1.1.1 2001/06/19 15:01:22 isam Exp $

      */

      import javax.swing.*;
      import java.awt.*;
      import java.awt.event.*;

      public class jarab_tashkeel extends JApplet
      {

              public void init()
              {
                      jarabtashkeel tashkeel = new jarabtashkeel();
                      getContentPane().add(tashkeel);
              }

              public static void main(String[] argv)
              {

              JFrame frame = new JFrame("\u0645\u062b\u0627\u0644");
              frame.setContentPane(new jarabtashkeel());
              frame.setVisible(true);
              frame.setSize(800,800);
              frame.addWindowListener( new WindowAdapter()
              {
                   public void windowClosing( WindowEvent e)
                   {
                       System.exit(0);
                   }
              });

              }

      }


      class jarabtashkeel extends JPanel
      {

              JTextArea tA1,tA2,tA3,tA4;
              
              public jarabtashkeel()
              {

                      this.setLayout(new GridLayout(2,2));
              
                      JTextArea tA1 = new JTextArea();
                      tA1.setFont(new Font("Lucida Sans Regular",Font.PLAIN,24));
                      tA1.setText("\u0642\u064e\u0644\u064e\u0645\u064c\u0020\u0648\u064e\u0020\u062f\u064e\u0641\u0652\u062a\u064e\u0631\u064e\u064a\u0652\u0646\u0650\u0020");

                      JTextArea tA2 = new JTextArea();
                      tA2.setFont(new Font("Lucida Sans Regular",Font.PLAIN,24));
                      tA2.setText("\u0625\u0650\u0646\u0651\u064e\u0020\u0627\u0644\u0642\u0650\u0637\u0651\u064e\u0020\u0623\u064e\u0628\u0652\u064a\u064e\u0636\u064c");

                      JTextArea tA3 = new JTextArea();
                      tA3.setFont(new Font("Lucida Sans Regular",Font.PLAIN,24));
                      tA3.setText("\u0628\u0650\u0646\u0652\u062a\u0627\u0646\u064d");

                      JTextArea tA4 = new JTextArea();
                      tA4.setFont(new Font("Lucida Sans Regular",Font.PLAIN,24));
                      tA4.setText("\u062b\u064e\u0644\u0652\u062c\u064e\u0627\u064b\u0020\u0648\u064e\u0020\u0645\u064e\u0637\u064e\u0631\u064e\u0627\u064b");

                      add(tA1);
                      add(tA2);
                      add(tA3);
                      add(tA4);
              }
      }

      ---------------------------------

      ======================================================================

            dougfelt Doug Felt
            jbenavrasunw Jonathan Benavraham (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: