Back to project page amulet.
The source code is released under:
MIT License
If you think the Android project amulet listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package scamell.michael.amulet; //from w w w. ja v a2 s .c om import android.content.Context; import android.graphics.Typeface; import android.util.AttributeSet; import android.widget.TextView; public class CoolveticaTextView extends TextView { private final Context context; public CoolveticaTextView(Context context) { super(context); this.context = context; isInEditMode(); Typeface tfs = Typeface.createFromAsset(context.getAssets(), "fonts/coolvetica.ttf"); setTypeface(tfs); } public CoolveticaTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); this.context = context; isInEditMode(); Typeface tfs = Typeface.createFromAsset(context.getAssets(), "fonts/coolvetica.ttf"); setTypeface(tfs); } public CoolveticaTextView(Context context, AttributeSet attrs) { super(context, attrs); this.context = context; isInEditMode(); Typeface tfs = Typeface.createFromAsset(context.getAssets(), "fonts/coolvetica.ttf"); setTypeface(tfs); } }