<https://lh3.googleusercontent.com/-rkCV21KSBeY/VqGT8Z8wVgI/AAAAAAAAAAk/np5Nd_GszwE/s1600/fontsProof.png>

<https://lh3.googleusercontent.com/-rkCV21KSBeY/VqGT8Z8wVgI/AAAAAAAAAAk/np5Nd_GszwE/s1600/fontsProof.png>
I have a font file (.ttf) in the fonts directory inside the assets folder. 
Proof:

Yet the error that my app gives me is that it can't find the font right 
there. I have double checked the name and been through several 
stackoverflow questions and seen no reason why it can't be found. Does 
someone have an idea what I did wrong? Here is the relevant code.

try {
    Typeface welcomeFace = Typeface.createFromAsset(this.getAssets(), 
"fonts/engebrechtrebd");
    TextView welcomeView = (TextView) this.findViewById(R.id.welcome);
    welcomeView.setTypeface(welcomeFace);
} catch(Exception e) {
    Log.d("test", "ERROR", e);
}



-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2b10a41b-b631-4da7-ad04-9e6fc7361426%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to