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

On Canvas, Cannot Change Font Style without changing font size

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      07
    • CPU:
      x86
    • OS:
      windows_nt

      Backports

        Description

        ==============================================================================
        The Application is to display some strings on the Canvas.

        1. Configration
           JDK : Kestrel build-o
           OS : Windows95 and WindousNT4.0 (SP3)

        2. Reproduction

           (1) Initiate the attached file "FontErr98.jar" with java command.
               (Java -jar FontErr98.jar)
              -> You will see 11 statements on a Canvas.
                 
                 Here is a part of 11 stentences

                 < Painting Incorrectli Case >
                   Paint Incorrectly /MS Mincho/Italic/Size20
                   Paint Incorrectly Not change to PLAIN ! /MS Mincho/Plain/Size20
                   Paint Incorrectly Not change to BOLD ! /MS Mincho/Bold/Size20
                 ........

           (2) The program intends to change the font style from the 2nd string to
               3rd, which is, from Italic to PLAIN.
               However, the style is not changed.
          
               This logic of program is described in the file,
               ( FontCacheSampleCanvas.java ) inclided in the attached jar file.


        3. Others

         (1) The java program file are included in the attached jar file.
             (FontCacheSample.java and FontCacheSampleCanvas.java)
         (2) This program works well on printing.
             Please see bugid: 4275267



        tbaba@japan 1999-11-18
        ===============================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                busersunw Btplusnull User (Inactive)
                Reporter:
                tbaba Tadayuki Baba (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: