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

java.awt.Font.getFont(String,Font) documentation is incomplete in jdk1.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: docs
    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      Verified

      Description



      Name: mgC56079 Date: 04/13/98



      ==== Here is the javadoc comment from jdk1.2beta3N (incomplete) =====
          /**
           * Returns the specified font from the system properties list.
           * @param nm the property name.
           * @param font a default font to return if property 'nm' is not defined.
           */
          public static Font getFont(String nm, Font font)

      ==== Here is the javadoc comment from jdk1.1.5 (complete) =====
          /**
           * Gets the specified font from the system properties list.
           * The first argument is treated as the name of a system property to
           * be obtained as if by the method <code>System.getProperty</code>.
           * The string value of this property is then interpreted as a font.
           * <p>
           * The property value should be one of the following forms:
           * <ul>
           * <li><em>fontname-style-pointsize</em>
           * <li><em>fontname-pointsize</em>
           * <li><em>fontname-style</em>
           * <li><em>fontname</em>
           * </ul>
           * where <i>style</i> is one of the three strings
           * <code>"BOLD"</code>, <code>"BOLDITALIC"</code>, or
           * <code>"ITALIC"</code>, and point size is a decimal
           * representation of the point size.
           * <p>
           * The default style is <code>PLAIN</code>. The default point size
           * is 12.
           * <p>
           * If the specified property is not found, the <code>font</code>
           * argument is returned instead.
           * @param nm the property name
           * @param font a default font to return if property <code>nm</code>
           * is not defined
           * @return the <code>Font</code> value of the property.
           * @since JDK1.0
           */
          public static Font getFont(String nm, Font font)


      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              asommere Alan Sommerer (Inactive)
              Reporter:
              mgorshen Mikhail Gorshenev (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: