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

Bad rendering of type1 font at certain zoom levels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • 9
    • 6u33
    • client-libs
    • 2d

               
      SHORT SUMMARY: bad rendering of type1 font at certain zoom levels
      INDICATORS: 6u33 rendering CaflishScriptMM Font
      COUNTER INDICATORS: other zoom levels
      TRIGGERS: see code snippet

      When rendering some text with the CaflishScriptMM Font (see attachement), the

      drawing is wrong ( see screenshots )

      On the screenshots, the blue line is rendered by extracting the glyph
      geometry from the font :
      GlyphVector gv = currentFont.createGlyphVector(frc, ctext);
      The black text is rendered using :
      Graphics2D g2;
      g2.drawString(text,x,y);

      You will notice that in CaflishScriptMM_correct.png, the blue line is
      coincident with the black text
      however, at a different zoom level ( CaflishScriptMM_incorrect.png ), the
      blue line is correct, but the black rendering is completely wrong.

      KNOWN WORKAROUND: Unclear
      PRESENT SINCE: Unclear
      HOW TO VERIFY: Seeking a test case
      NOTES FOR SE: -
      REGRESSION: Unclear

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

              Created:
              Updated:
              Resolved: