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

Font("Arial Narrow MT", Font.BOLD+Font.ITALIC, 12) rendered PLAIN

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.0
    • 1.2.0
    • client-libs
    • 2d
    • kestrel
    • sparc
    • solaris_2.6

      > 1. Many of the fonts do not respond to style and size changes and many of the
      > fonts do not register at all. For example, if you already have Arial and then
      > you choose Arial Narrow and press Render, the string doesn't change. Do you
      > think that this problem might be particular to the font? Some common fonts do
      > work, like Helvetica. -Jennifer Ball

      It looks like the mapping of font styles to font names is broken for some of the fonts. There is a 'Arial Narrow MT Bold Italic' font so when specifying
      Font("Arial Narrow MT", Font.BOLD + Font.ITALIC, 12), I would expect to see Bold and Italic text, but the text is rendered plain. A getAllFonts() call shows this info :

      Arial Narrow MT, family=Arial Narrow MT
      Arial Narrow MT Bold, family=Arial Narrow MT
      Arial Narrow MT Bold Italic, family=Arial Narrow MT
      Arial Narrow MT Italic, family=Arial Narrow MT

      So the bold + italic style is there for Arial Narrow MT. To reproduce compile and run the attached program.

      Solaris 2.6, beta4-K build.

            pkejriwasunw Parry Kejriwal (Inactive)
            blichtensunw Brian Lichtenwalter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: