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

Broken painting of glyph outlines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • 2d
    • beta2
    • x86
    • windows_nt, windows_2000

      J2SE Version:

      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b58)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b58, mixed mode)

      Problem:

      Drawing glyphs from a GlyphVector using the 2D API.
      Each paint of a glyph outline paints the outline of the
      complete GlyphVector.

      It seems that sun.awt.font.StandardGlyphVector#getGlyphOutline(int)
      is broken and answers the same as #getOutline().


      Steps to Reproduce (be specific):

      Find attached a simple test program, GlyphVectorTest.java,
      which prints four lines:
      1. paint 'Test' using Graphics2d#drawString
      2. paint the outline of a GlyphVector for 'Test'.
      3. same as 2) but repeated for each glyph, should paint overlayed glyphs
      4. paint each glyph in 'Test', using all glyphOutlines from the GlyphVector

      Using J2SE 1.3, lines 2 and 4 are equal, which is the expected result.
      Using J2SE 1.4, lines 3 and 4 are equal, which is not expected.

            dougfelt Doug Felt (Inactive)
            mzaudousunw Menasse Zaudou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: