Font constructor doesn't work properly with non standard fonts

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.2
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: