4

Is it possible to create a TextAppearanceSpan, which takes font family name as String, but use a custom font. I know how to create a TypeFace from a file with Typeface.createFromAsset(), but it isn't helping.

unexpectedvalue
  • 6,079
  • 3
  • 38
  • 62

1 Answers1

2

People seem to still have trouble with this so here you go: This is how it was accomplished for TypefaceSpan, overriding for TextAppearanceSpan is just a tad more code.

Community
  • 1
  • 1
unexpectedvalue
  • 6,079
  • 3
  • 38
  • 62