[gui][PATCH] Add missing Font fields

Thomas Fitzsimmons fitzsim@redhat.com
Tue Nov 2 17:21:00 GMT 2004


Hi,

I committed this to java-gui-branch.

Tom

2004-11-02  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/Font.java (name): New field.
	(size): Likewise.
	(style): Likewise.

Index: java/awt/Font.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Font.java,v
retrieving revision 1.16.8.7
diff -u -r1.16.8.7 Font.java
--- java/awt/Font.java	22 Oct 2004 09:35:57 -0000	1.16.8.7
+++ java/awt/Font.java	2 Nov 2004 17:19:43 -0000
@@ -161,6 +161,26 @@
    */
   public static final int LAYOUT_NO_LIMIT_CONTEXT = 4;
 
+  /**
+   * The logical name of this font.
+   *
+   * @since 1.0
+   */
+  protected String name;
+
+  /**
+   * The size of this font in pixels.
+   *
+   * @since 1.0
+   */
+  protected int size;
+
+  /**
+   * The style of this font -- PLAIN, BOLD, ITALIC or BOLD+ITALIC.
+   *
+   * @since 1.0
+   */
+  protected int style;
 
 // Serialization constant
 private static final long serialVersionUID = -4206021311591459213L;




More information about the Java-patches mailing list