save the font name ie digital-7i.ttf in the settings, when the user selects any font that you can replace with the name from the settings, and use your code as follows.
SharedPreferences Settings = getSharedPreferences( "<PREF_NAME>", MODE_PRIVATE); fontName = Settings.getString("<KEY>", "digital-7i.ttf"); mTimerLabel = (TextView)findViewById(R.id.label); Typeface typeface = Typeface.createFromAsset(getAssets(), "Fonts/"+fontName); mTimerLabel.setTypeface(typeface);
source share