Add the following to the root gradle file.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
compile 'com.github.dondaldo:DynamicFonts:0.0.4'
String fonturl = "FONT_URL";
FontConfig.with(this).loadFont(fonturl, new Callback<Typeface>() {
@Override
public void send(Typeface typeface) {
mTypeface = typeface;
...
}
});