package com.shamanland.fonticon;

import android.content.res.AssetManager;
import android.graphics.Typeface;

public class FontIconTypefaceHolder {
    private static Typeface sTypeface;

    public static Typeface getTypeface() {
        if (sTypeface == null) {
            throw new IllegalStateException();
        }

        return sTypeface;
    }

    public static void init(AssetManager assets, String path) {
        sTypeface = Typeface.createFromAsset(assets, path);
    }
}

@@ -103,16 +103,38 @@
 eface;%0A%0A
+import java.io.File;%0A%0A
 public c
@@ -499,11 +499,110 @@
 );%0A    %7D
+%0A%0A    public static void init(File file) %7B%0A        sTypeface = Typeface.createFromFile(file);%0A    %7D
 %0A%7D%0A

Allow initializing the FontIconTypefaceHolder with File