I would like to store the font details in database and when needed retrieve the font and apply the typeface to TextView?
userFont = text.getTypeface().toString();
Now I am storing the userFont in my database, and it looks like "android.graphics.Typeface@12345543"
I want to create a typeface using the userFont and apply the typeface to TextView
The expected code looks like this.
TextView txt = findViewById(R.id.showUserEnteredText);
Typeface font = Typeface.create(userFont);
txt.setTypeface(font);
Help me apply a concept like this?