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

Alignment issue during Arabic printing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.02-040225-17:20)
      Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.02-040225-19:18 PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      OS: WinXP, Win2K

      Browser: Internet Explorer (IE 6)

      JDK: java version "1.4.2.02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.02-040225-17:20)
      Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.02-040225-19:18 PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Run the applet with the locale settings as "Arabic(Egypt)"

      A DESCRIPTION OF THE PROBLEM :
      This is related to a printing issue raised by one of our customers in Egypt

      When the Arabic report is printed through the notepad print option, the report is printed as desired with no alignment issues. But when it's printed through our application the alignment is not proper. We have found that the lines which are not aligned contain a particular Arabic character. The font used is 'Simplified Arabic Fixed'. The character is in the attached file arab-fixed.txt.

      Printing is done through one of our components called Finclient which uses the Java Swing package.

      The OS on the desktop is Windows 2000 or Windows XP. The JRE version is 1.4.2_04. The browser used is Internet Explorer (IE 6).

      This issue seems to be inherently present in the Java Swing package. We have written a sample swing program and have found that while displaying it in the swing text area also we find the same alignment issue. The sample program and the report is in the attached file arabic-fixed.zip.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      We can share a sample program if we can get a reference mail-id

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Alignment should be proper similar to that of notepad during printing.
      ACTUAL -
      When the Arabic report is printed through the notepad print option, the report is printed as desired with no alignment issues. But when it's printed through our application the alignment is not proper. We have found that the lines which are not aligned contain a particular Arabic character. The font used is 'Simplified Arabic Fixed'.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No errors. Only alignment is getting distorted.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Attached seperately
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            Assignee:
            prr Philip Race
            Reporter:
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: