title: Setting custom font on widget remote view is not working
body: <p>I am using following line of code to set custom font on widget using <code>remoteView.setTextViewText(R.id.folder_widget_text_view, SS);</code>but its not working at all, If i used the same code on normal <code>TextView.setText(SS)</code> method it works.</p>
  
  <p>So is anything wrong in my code or if I miss something.</p>
  
  <pre><code>SpannableStringBuilder SS = new SpannableStringBuilder("hello");
          SS.setSpan (new CustomTypefaceSpan(this, "Rosemary.ttf"), 0, SS.length(), Spanned.SPAN_EXCLUSIVE_INCLUSIVE);
  remoteView.setTextViewText(R.id.folder_widget_text_view, SS);
  </code></pre>
  
  <p><strong>CustomTypefaceSpan Class</strong></p>
  
  <pre><code>public class CustomTypefaceSpan extends MetricAffectingSpan 
  {
      private static LruCache&lt;String, Typeface&gt; sTypefaceCache =
              new LruCache&lt;String, Typeface&gt;(12);
  
      private Typeface mTypeface;
  
      public CustomTypefaceSpan(Context context, String typefaceName) 
      {
          mTypeface = sTypefaceCache.get(typefaceName);
  
          if (mTypeface == null) 
          {
              mTypeface = Typeface.createFromAsset(context.getAssets(), typefaceName);
  
              // Cache the loaded Typeface
              sTypefaceCache.put(typefaceName, mTypeface);
          }
      }
  
      @Override
      public void updateMeasureState(TextPaint p) 
      {
          p.setTypeface(mTypeface);
  
          // Note: This flag is required for proper typeface rendering
          p.setFlags(p.getFlags() | Paint.SUBPIXEL_TEXT_FLAG);
      }
  
      @Override
      public void updateDrawState(TextPaint tp) 
      {
          tp.setTypeface(mTypeface);
  
          // Note: This flag is required for proper typeface rendering
          tp.setFlags(tp.getFlags() | Paint.SUBPIXEL_TEXT_FLAG);
      }
  }
  </code></pre>