private void getfontTypeFace() { Typeface tf; if (resourceId > 0) { android.widget.Button tmpview = (android.widget.Button) container.$form().findViewById(resourceId); tf = tmpview.getTypeface(); } else { tf = view.getTypeface(); } if (tf == null) { fontTypeface = Component.TYPEFACE_DEFAULT; } else { if (tf.equals(Typeface.DEFAULT)) { fontTypeface = Component.TYPEFACE_DEFAULT; } else if (tf.equals(Typeface.SERIF)) { fontTypeface = Component.TYPEFACE_SERIF; } else if (tf.equals(Typeface.SANS_SERIF)) { fontTypeface = Component.TYPEFACE_SANSSERIF; } else if (tf.equals(Typeface.MONOSPACE)) { fontTypeface = Component.TYPEFACE_MONOSPACE; } } }