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

Rounding error in Windows L&F prevents usage of embeded bitmaps for some font sizes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • None
    • 6
    • client-libs
    • None

    Description

      At least for some glyphs of 11 point SimSun font are T2K produces much worse
      results than MS native rasterizer without any antialiasing enabled.

      Steps to reproduce:
        1. Open SimSun font with T2K, set size to 11
            (be sure AA is off)
           Select "User text" and type in " \u7f6e\u9700". Press update button.

        2. Open attached RTF file with wordpad or
            input these glyphs manually. Be sure to use SimSun font too.
        
        3. Adjust the size of MS text to get same height in actual number of
          pixels as java uses (i.e. 9 points).
          Depending on font config on your windows it might be 8 (96 dpi) or even 6
            (if you use large fonts with 120 dpi).

      Observe the difference.
      Sample windowshot of Font2DTest is attached. As well as minimal java app
      that reproduces this problem.

      ###@###.### 2004-12-21 03:20:53 GMT

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              igor Igor Nekrestyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:
                Indexed: