Android lacks proper support for custom typefaces. Most obvious method of defining typeface for UI elements via XML attributes is missing from default framework views. This library makes it a lot easier to set custom typefaces from java code – one time initialization inside Application subclas and then applying custom typeface to all View’s via typeface() static method call.
Features:
- Apply custom typefaces to whole view hierarchy via single call.
- Super easy initialization in Application subclass via TypefaceHelper.init()
- TypefaceHelper.typeface() applies custom typeface to all TextView’s inside Activity or ViewGroup
- TypefaceHelper can also apply custom typeface to View, or create SpannableString with custom font from Strning/CharSequence
- Support for multiple typefaces: TypefaceHelper can use default TypefaceCollection passed via init() or can be parametrized with other TypefaceCollection
- Support for textStyles: Typeface.NORMAL, Typeface.BOLD, Typeface.ITALIC and Typeface.BOLD_ITALIC
- Support for dynamic typeface changes
- Support for custom typefaces in ActionBar title
