title: How to use SharedPreferece for Android Typeface?
body: <p>I created a sample application using Android <strong>TextView with shared preferences</strong>. In my application i have a sample textview which contains some text (Eg. "Android Font Text"), and also a had <strong>set of fonts in my assets folder</strong>. Here  my requirement is, <strong>when i touch the textview, a sample dialog will popup in this pop up i shows the list of font's in assets folder</strong>. When i select any one of the font it was changed successfully, it persist only in that particular activity. When i back to next activity the text view remains in <strong>default style</strong>. Here how can i achieve shared preferences for fonts. I can't pass the type face object through the editor. I used like this, </p>
  
  <pre><code>  Typeface font = Typeface.createFromAsset(getAssets(),"digit_fonts/AKEI____.TTF");
      font.isBold();
      mTextView.setTypeface(font);
      font_editor = font_pref.edit();
      font_editor.putString("font_style", font.toString());
      font_editor.commit();
  </code></pre>
  
  <p>Unfortunately it won't works, how can i acheive, if any one solve my problem. Thanks in Advance. </p>