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

Font constructor doesn't work properly with non standard fonts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2
    • client-libs
    • 2d
    • x86
    • windows_nt



      Name: clC74495 Date: 08/09/99

      For test case, see "Attachments..."


      VERSION
      -------
      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, native threads, symcjit)

      java full version "JDK-1.2.2-W"

      DESCRIPTION
      -----------
      When creating a new Font object with Font(name, type, size)
      constructor, a problem can occur if I'm using a non-standard
      font family name like "Arial". (With any standard font family
      like "Serif" things are OK).

      The problem is that if I create a Font with Font.PLAIN type
      the Font displays properly in a JTextField.
      But then I change the field's font for the same font with
      ITALIC type and the font still appears PLAIN.

      It only appears in ITALIC if I also change the size at the same
      time.

      I got the "arial" family name from
      GraphicsEnvironment.getAvailableFontFamilyNames()
      (Review ID: 93674)
      ======================================================================

            Unassigned Unassigned
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: