public static Font random(int style, int size) {
        Font font = null;
        while (font == null) {
            try {
                int index = R.random(0, commonFonts.length - 1);
                font = get(commonFonts[index], style, size);
            }
            catch (Exception e) {}
        }
        return font;
    }
public static Font random(int style, int size) {
        Font font = null;
        while (font == null) {
            try {
                int index = R.random(0, commonFonts.length - 1);
                font = get(commonFonts[index], style, size);
            }
            catch (Exception e) {}
        }
        return font;
    }
public static Font random ( int style , int size ) { Font font = null ; while ( font == null ) { try { int index = R . random ( 0 , commonFonts . length - 1 ) ; font = get ( commonFonts [ index ] , style , size ) ; } catch ( Exception e ) { } } return font ; }
获得随机字体

@param style
字体样式 支持：Font.PLAIN Font.BOLD Font.ITALIC
@param size
字体大小
@return 字体
获得随机字体