Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Roboto condesed (or thin) font in ICS+?

Tags:

android

fonts

I can't find the way to set Roboto condensed (thin) instead of the default one. Is it possible?

like image 473
Santacrab Avatar asked Dec 02 '22 21:12

Santacrab


1 Answers

  1. Download the full Roboto family

  2. Copy Roboto-Condensed.ttf into your project's assets folder

  3. In code, get a reference to your Typeface with Typeface robotoCond = Typeface.createFromAsset(context.getAssets(), "Roboto-Condensed.ttf")

  4. Use this in any widget, e.g. textView.setTypeface(robotoCond);

  5. ???

  6. PROFIT!

like image 110
Kevin Coppock Avatar answered Dec 10 '22 13:12

Kevin Coppock