Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.graphics.Typeface; public class Main { private static Typeface oogie = null; public final static Typeface getOogie(Context ctx) { if (oogie == null) oogie = Typeface.createFromAsset(ctx.getAssets(), "fonts/OogieBoogie.ttf"); return oogie; } }