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

XRender pipeline does ignore source-surface offset for text rendering

XMLWordPrintable

    • 2d
    • 7
    • b108
    • x86
    • linux
    • Verified

      FULL PRODUCT VERSION :
      java version "1.7.0_05-icedtea"
      OpenJDK Runtime Environment (fedora-2.2.1.fc17.9-x86_64)
      OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)


      A DESCRIPTION OF THE PROBLEM :
      The XRender pipeline currently does not set the source offset properly when rendering text.
      This results in the wrong texturing when rendering text with TexturePaint or GradientPaints.

      I intend to contribute a patch to OpenJDK, to fix this issue.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      xrender pipeline should take source offset for text rendering into account
      ACTUAL -
      xrender pipeline does not take source offset for text rendering into account

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      g.setPaint(new GradientPaint(new Point2D.Float(0, 0), new Color(255, 255, 0), new Point2D.Float(100, 100), new Color(0, 255, 255)));
      g.fillOval(25, 25, 50, 50);
      g.setFont(new Font("Dialog", Font.PLAIN, 100));
      g.drawString("Hello!", 120, 50);
      ---------- END SOURCE ----------

            prr Philip Race
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: