None of these answers worked for me.
They may have worked for others, but as I got the bold version of the font working in my program, I did the following:
Copy / paste the .ttc font - in this case, AmericanTypewriter.ttc - into the folder that I created in the main / assets / directory called / fonts. So main / assets / fonts / AmericanTypewriter.ttc
I made sure that I have a TextView with an id in my xml:
<TextView android:id="@+id/myTextView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="This is American Bold"/>
At the top of my activity, a TextView object is declared:
private TextView myTextView;
The following code is inserted in the same Activity onCreate ():
Typeface americanFont = Typeface.createFromAsset(getAssets(), "fonts/AmericanTypewriter.ttc"); Typeface americanFontBold = Typeface.create(americanFont, Typeface.BOLD); myTextView = (TextView) findViewById(R.id.myTextView); myTextView.setTypeface(americanFontBold);
source share