Skip to content

Instantly share code, notes, and snippets.

@vamsitallapudi
Created August 28, 2019 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamsitallapudi/8ad00647e499431969ee8134c4182612 to your computer and use it in GitHub Desktop.
Save vamsitallapudi/8ad00647e499431969ee8134c4182612 to your computer and use it in GitHub Desktop.
package com.coderefer.firebasedatabaseexample;
import android.app.Application;
import com.coderefer.firebasedatabaseexample.util.FontsOverride;
/**
* Created by vamsi on 06-05-2017 for android custom font article
*/
public class CustomFontApp extends Application {
@Override
public void onCreate() {
super.onCreate();
FontsOverride.setDefaultFont(this, "DEFAULT", "fonts/raleway.ttf");
FontsOverride.setDefaultFont(this, "MONOSPACE", "fonts/raleway.ttf");
FontsOverride.setDefaultFont(this, "SERIF", "fonts/raleway.ttf");
FontsOverride.setDefaultFont(this, "SANS_SERIF", "fonts/raleway.ttf");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment