blob: 271f0cf685b694dd19d60e66554e0f0038e2563c [file] [log] [blame]
package com.airbnb.lottie;
import android.graphics.Typeface;
/**
* Delegate to handle the loading of fonts that are not packaged in the assets of your app or don't
* have the same file name.
*
* @see LottieDrawable#setFontAssetDelegate(FontAssetDelegate)
*/
@SuppressWarnings({"unused", "WeakerAccess"}) public class FontAssetDelegate {
/**
* Override this if you want to return a Typeface from a font family.
*/
public Typeface fetchFont(String fontFamily) {
return null;
}
/**
* Override this if you want to specify the asset path for a given font family.
*/
public String getFontPath(String fontFamily) {
return null;
}
}