String value = (String)attr.getAttribute(Style.FONT_SIZE);
String value = (String)attr.get(Style.FONT_SIZE);
    private static int getFontSize(AttributeSet attr) {	String value = (String)attr.getAttribute(Style.FONT_SIZE);	if (value == null)            return -1;	try {	    if (value.equals("xx-small")) {		return 8;	    } else if (value.equals("x-small")) {		return 10;	    } else if (value.equals("small")) {		return 12;	    } else if (value.equals("medium")) {		return 14;	    } else if (value.equals("large")) {		return 18;	    } else if (value.equals("x-large")) {		return 24;	    } else if (value.equals("xx-large")) {		return 36;	    } else {		return new Float(getLength(value)).intValue();	    }	} catch (NumberFormatException nfe) {            return -1;	}    }