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

characters are represented by small rectangles on printing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • client-libs
    • 2d
    • x86
    • windows_95



      Name: clC74495 Date: 07/07/99


      On printer's page description language,
      a character drawn by Java2D is represented as set of
      one pixel height rectangles such as,

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

      (= "ABC").

      That representation slows down printing speed, and
      grows up spool data size.
      (Review ID: 85211)
      ======================================================================

      This bug happened under the two following both of two environments.

      OS : win_95
      Printer : Canon LBP-A404 PS Lite
      Printer Driver : Postscript Printer Driver ver. 4.00

      OS : win_95
      Printer : Canon Laser Shot LBP-450
      Printer Driver : Lips4 Printer Driver for windows95 Vwersion 5.22

      The results of printing depends on the type of font.
      Here are a couple ofsource code of print methods that the user implemented.


      1. Using True type font( ex. MS Gothic )

       The issue did not occur.
       The character "1" is drawn as character string.

       public int print(Graphics g, PageFormat pf, int pi) {
          Graphics2D g2 = (Graphics2D)g;
          g2.setColor(Color.black);
          g2.setFont(new Font("MS Gothic",Font.PLAIN,20));
          g2.drawString("1",144,144);
        }

      2. Using Java font ( ex. Dialog )

       The issue occurred. The character "1" is drawn as a lot of 1 dot width
       lines.

        public int print(Graphics g, PageFormat pf, int pi) {
          Graphics2D g2 = (Graphics2D)g;
          g2.setColor(Color.black);
          g2.drawString("1",144,144);
        }

      [ tbaba@japan 1999-09-02 ]

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

            prr Philip Race
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: