java中Font.BOLD等字型对应数值是多少?

[b]java中Font.BOLD等字型对应数值是多少?[/b][i][/i][u][/u][color=red][/color][align=center][/align]

哈哈,看JDK的源码哈。
[code="java"]/**
* The plain style constant.
*/
public static final int PLAIN = 0;

/**
 * The bold style constant.  This can be combined with the other style
 * constants (except PLAIN) for mixed styles.
 */
public static final int BOLD    = 1;

/**
 * The italicized style constant.  This can be combined with the other
 * style constants (except PLAIN) for mixed styles.
 */
public static final int ITALIC  = 2;

/**
 * The baseline used in most Roman scripts when laying out text.
 */
public static final int ROMAN_BASELINE = 0;

/**
 * The baseline used in ideographic scripts like Chinese, Japanese,
 * and Korean when laying out text.
 */
public static final int CENTER_BASELINE = 1;

/**
 * The baseline used in Devanigiri and similar scripts when laying
 * out text.
 */
public static final int HANGING_BASELINE = 2;

/**
 * Identify a font resource of type TRUETYPE.
 * Used to specify a TrueType font resource to the
 * {@link #createFont} method.
 * @since 1.3
 */

public static final int TRUETYPE_FONT = 0;

/**
 * Identify a font resource of type TYPE1.
 * Used to specify a Type1 font resource to the
 * {@link #createFont} method.
 * @since 1.5
 */
public static final int TYPE1_FONT = 1;[/code]

囧..你可以直接System.out.println()输出出来看啊...