public static FontData getStyled ( String familyName , int style ) { boolean b = ( style & Font . BOLD ) != 0 ; boolean i = ( style & Font . ITALIC ) != 0 ; if ( b & i ) { return getBoldItalic ( familyName ) ; } else if ( b ) { return getBold ( familyName ) ; } else if ( i ) { return getItalic ( familyName ) ; } else { return getPlain ( familyName ) ; } }
Get a styled version of a particular font family