Code example for TypefaceSpan

0
                                 Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
                } 
            } 
 
            if (f.mFace != null) {
                text.setSpan(new TypefaceSpan(f.mFace), where, len,
                             Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
            } 
        } 
    } 
 
    private static void startA(SpannableStringBuilder text, Element node) {
        String href = node.attr("href");
 
        int len = text.length();
        text.setSpan(new Href(href), len, len, Spannable.SPAN_MARK_MARK);
    } 
 
    private static void endA(SpannableStringBuilder text, Context context) {
        int len = text.length();
        Object obj = getLast(text, Href.class);