AbAppletic AbAppletic - 1 year ago 82
Android Question

Chrisjenx's Calligraphy library doesn't work

I don't think I really understood the ReadMe well, because I have this in my code:

public void onCreate() {
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()

protected void attachBaseContext(Context newBase) {

And I have trado.ttf in my assets folder. This is in my
class. This is all I've done, did I miss something?

Answer Source
  • Override attachBaseContext(...) in your Activity classes.
  • Do initDefault(...) stuff inside Application onCreate().
  • Put trado.ttf inside assets/fonts folder.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download